-
Notifications
You must be signed in to change notification settings - Fork 126
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
Consider allowing aria-valuetext for combobox role #2382
Comments
We should find the existing issues related to aria-valuetext before discussing this in a meeting. |
For me it sounds peculiar that an author has to use ARIA (in this case aria-valuetext) in a native new HTML element to enable its accessibility. That was up to date never the case. Every native element has its in-built accessibility and that should stay so further on. I don't know how to get it correct in the case of stylable select. But hopefully not using ARIA that should only enable authors to code semantics where it is not possible with the markup of the underlying markup language. |
@MarioBatusic you misunderstand. aria-valuetext wouldn't be necessary by default. but it would be a useful tool to have for developers who need to do more complicated things with the presentation of the chosen selected value (which can now have content beyond just text) which can still be done with HTML alone, but might take far more markup to accomplish. |
We discussed this in today’s ARIA WG meeting, so I’m going to remove the “Agenda” label. |
Discussed in today's meeting: https://www.w3.org/2024/12/05-aria-minutes#4b53 |
From the minutes: "Rahim: there was some internal discussion on this; consensus was that behaviour like described in the issue would be the right behaviour". @scottaohara Do you have time to work up the appropriate PRs? The Chromium issue is https://issues.chromium.org/issues/392649975 — I can work on the implementation when the PR is up. |
writing to acknowledge the ping. I'll hopefully have time to work on finalizing the select PRs tomorrow. Which is also what i had hoped to be able to do yesterday and today.... but yeah... on the todo list.... |
closes #2382 and is related to #2344 / #2369 This PR adds aria-valuetext as a supported property for the combobox role. the `aria-valuetext` definition is slightly updated to indicate that the attribute can be used on other supported roles. I'm not sure if we want to do any further updates to that section in this PR - or if that really should be handled in a larger PR to resolve #711
In attempting to decide upon a way for the customizable select element to calculate the value to expose to users, use cases arose where allowing an author to set
aria-valuetext
on theselect
element (role=comobox) instead of having to fiddle with the returned markup from the select element's chosen option, seemed like a good idea.Consider the following:
In the collapsed state, the description is set to display none so that only the emoji is displayed.
The following is a lot easier for a developer to do to get the option to announce in the intended way - but the returned content to the selectedoption element will only be the emoji, not the aria-label
so, if someone could do
that'd be a lot nicer than having to fiddle with very specific markup patterns, ensuring that every bit was marked up properly to convey the intended value when interacting with the collapsed select and when reviewing individual options.
cc @smhigley @aleventhal
The text was updated successfully, but these errors were encountered: