-
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
Block bindings: Fix accessibility of the 'Connected' visual indicator in the block toolbar #60810
Comments
Late to the party but I'm afraid the text A The text Also, the arrows keyboard interaction, which is the expected interaction for a menu, will never reach this text as it works only for items in the menu. Screen reader users will have very few chances to discover this text at the bottom of the menu as they wouldn't expect it to be there. I haven't followed the discussion where this design was provided but there have been already other cases of extraneous content in a role=menu and they have been removed. I'd kindly ask to remove this text from the menu to preserve the ARIA menu pattern expected semantics. I'd argue that also from a visuals perspective, burying down in a menu such important information isn't ideal |
Thanks a lot for the feedback and sorry for introducing those issues. If I am not mistaken, that was introduced in this pull request by @kevin940726 and the discussion happened here. @richtabor @jasmussen As you were involved in that conversation, maybe you can help here. Any alternative to the "The block is connected" text, which is causing accessibility issues? |
Happy to explore this if we think it'd be better for accessibility. It'd be better to have a unified way to display such text as shown in the edit mode popover too though! |
Description
Spltting this out from https://github.saobby.my.eu.orgsically/WordPress/gutenberg/issues/58595#issuecomment-2060646354
The 'connected' visual indicator added to the block toolbar is not OK. It's a focusable div element with an aria-label attribute, which is not OK and it's something that was already pointed out several times as a bad practice. Never use a focusable div unless it reproduces all the native semantics and behaviors of the corresponding HTML element that is supposed to replace.
Additionally:
It should be changed to an aria-disabled, nooped, button. It should show a tooltip.
As mentioned in several other issues and PRs, please remind:
Important
Never ever use focusable div elements.
Step-by-step reproduction instructions
Animated GIF to illustrate:
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: