-
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
Navigation Block placeholder dropdown - use a11y friendly label. #22999
Comments
From the #accessibility feedback, here's the concise version of the constraints we need to operate in:
If we are sectioning options off (like with the divider line), we could maybe add headings to each section if this is a custom |
@karmatosed - Pinging you here, as @getdave says you're leading the design on this component 🙌 |
Thanks for the ping. I am going to loop in @enriquesanchez here for a perspective on this as hopefully, we can work out an option. |
Could the "Create a Navigation..." text act as a label with From https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA7:
Would that get too repetitive? |
Hey peeps, my comment here should be relevant for this discussion. Pasting below:
|
@tellthemachines I thought I'd mention there an issue related to copy here as well - #22987, given you mentioned changing the copy above. They could possibly be combined. |
Jerry asked about labeling in the Slack accessibility channel. https://wordpress.slack.com/archives/C02RP4X03/p1591390740446600
Here is a reply from Joe Dolson.
"Using an option for a label introduces a few problems: it’s disabled, so the color contrast is a problem. Disabled controls are an exception to color contrast guidelines, but labels aren’t. 2nd, (which may not be relevant in this use case), the label would be non-obvious if a value is selected in the select, since it would no longer be the first perceived value, and 3rd, screen readers will skip the disabled option when focusing on the control, and go directly to the first enabled option. The faux label would not be read. If the option is also given the “selected” value, then it will be focused by a screen reader, but will also be described as an invalid entry, which could be confusing."
Originally posted by @paaljoachim in https://github.com/_render_node/MDE3OlB1bGxSZXF1ZXN0UmV2aWV3NDI0MjE0OTA5/pull_request_reviews/more_threads
This Issue tracks the need to consider using a visible
label
for the dropdown used in the Navigation Block which will be in place once #18869 is merged.Currently, the first
option
element acts like a kind of pseudo label. This could be updated to use a real menu and the first option could be amended toPlease select...
or something generic like that.The text was updated successfully, but these errors were encountered: