Conversation
8c32251 to
30388e8
Compare
| <> | ||
| <Tooltip | ||
| text={ describedBy ? describedBy : label } | ||
| text={ children?.length && describedBy ? describedBy : label } |
There was a problem hiding this comment.
The Button component was always showing the label for the tooltip of icon buttons, except when a describedBy was defined and then it would show the description.
This doesn't seem right because it makes the label not visible.
| : _x( 'View options', 'Button label to reveal tool panel options' ); | ||
| const dropDownMenuLabelText = sprintf( | ||
| // translators: %s: The name of the tool e.g. "Color" or "Typography". | ||
| _x( '%s options', 'Button label to reveal tool panel options' ), |
There was a problem hiding this comment.
Because it's a mouthful? I think it should be fine: it's the label for a collective group of dimensions, e.g., options of/for dimensions.
packages/components/src/tools-panel/tools-panel-header/component.tsx
Outdated
Show resolved
Hide resolved
|
Size Change: +190 B (0%) Total Size: 1.23 MB
ℹ️ View Unchanged
|
|
Tested with Voiceover on mac and it works as described in the testing instructions. |
|
I know there are some tests to fix up but echoing @carolinan's comments: works as described using Voiceover and the UX change to the dropdown visibility seem natural to me. I did stop to pause and wonder if the panel should close on "Reset all", but I think it's minor detail that could be discussed at a later point. |
ee15c69 to
ac8af34
Compare
2db91a2 to
9049e85
Compare
|
All the tests are passing now and I've added some additional unit tests 👍 |
ramonjd
left a comment
There was a problem hiding this comment.
Tested again using voiceover with keyboard and mouse
LGTM
I committed the CHANGELOG.md conflict (tests were passing before I did this 😄 )
|
@talldan Thanks for your work here! 👍 I was AFK and still trying to catch up but this works really well. |

What?
A few fixes for #40460
Addresses some accessibility issues for the
ToolsPanelcomponent:menu-itemand doesn't havearia-selectedspecified.speakto announce the outcome of selecting a menu item in the options dropdownAlso:
Buttons, where the tooltip displayed the description instead of the label.Testing Instructions
(with a screenreader active)