-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Top toolbar buttons tooltips and style when 'Show button text labels' is enabled #42815
Conversation
Size Change: +56 B (0%) Total Size: 1.26 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have followed the testing instructions and the tooltips as well as the tertiary styles are showing correctly. Buttons with actions that does not have a keyboard shortcut does not have a duplicate tooltips.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great a11y fix! LGTM 👍
Fixes #42676
What?
Makes the Top toolbar tooltips and style consistent when the 'Show button text labels' preference is enabled.
Why?
When 'Show button text labels' is enabled:
tertiary
style, except the 'Publish / Save' buttons. This was missed for some buttons and it was also inconsistent between the Post Editor and the Site Editor.How?
showIconLabels
preference and passes it where necessary.showIconLabels
to determine the button tertiaryvariant
prop value in a consistent way across buttons and editors.Testing Instructions
Reminder: the 'Undo' and 'Redo' buttons are disabled by default. Make some changes to add undo/redo history steps and check the buttons have a tertiary style.
Screenshots or screencast
For the missing tertiary style, see screenshots on the issue #42676 (comment)