-
Notifications
You must be signed in to change notification settings - Fork 125
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
New ARIA role for a <meter> element? #451
Comments
The HTML-AAM (now moved to its own repository) specifies no corresponding role for
See issue #2 in the new HTML-AAM repo.
Since ARIA seems committed to delivering roles for every native HTML semantic, it's a good question. @joanmarie, @halindrome, @cookiecrook? |
Would it be acceptable to expose the meter as a read-only input range/slider? If a new role was created, it would of course be a subclass of the (abstract) However, if Voiceover and other screen-readers correctly expose these values (without converting to percentages) for The HTML (Demo of the different cases; Chrome, Firefox, and Edge all use green/yellow/red bars with no additional metadata markings.) So, in sum, a
This mapping would, I think, make meters more accessible to screen reader users than to visual users. As currently implemented, the actual numerical values are not visually exposed by any browser, and the color status codes are probably not very useful to color-blind users. But that's another issue... It still might be useful, in the long term, to have an ARIA role for a meter or gauge that isn't a progressbar. But using the existing mappings for input sliders means that we can make this change via the HTML-AAM, and hopefully get it into browsers quickly, without needing to first spec a new ARIA roles or implement new Accessibility API roles. |
There are, I think, a couple of questions/issues:
Regarding the latter, on my platform (ATK), the mapping is correct: ATK_ROLE_LEVEL_BAR (which is not the same as ATK_ROLE_PROGRESS_BAR). Maybe we should add a new ARIA role (for HTML5 parity). But I think the issue stated in the opening report can be solved independently of that. |
If at least some platforms have a native role that is a direct equivalent of a meter (a range that is not a progress bar, and not an input slider), then that is a good argument for defining a distinct ARIA role. For short term, better platform mappings could still be added to the HTML-AAM, without having an ARIA role to map to. But as I've argued elsewhere, I don't like having custom mappings for HTML elements without having an equivalent role in the ARIA taxonomy. |
On Mon, Oct 10, 2016 at 10:06 PM, Jason Kiss [email protected]
I would say that HTML AAM shouldn't force addition for new ARIA roles, even [1]
|
I filed https://webkit.org/b/164051 for the WebKit bug. I'm generally only board with a 1:1 mapping to HTML elements, though many of the generic ones (div, span, b, etc.) should map to the same generic role. |
Re: previous comment from October, I filed a new issue #525 |
The
<meter>
element has an incorrect default ARIA role ofprogressbar
which causes some assistive technology (I've tested in VoiceOver on OSX 10.11) to announce the<meter>
element as a "progress indicator" and the value of the element as a percentage rather than the defined value (for example "80%" instead of "4 out of 5").The HTML spec for the
<meter>
element states that:Can we have a new ARIA role for a
<meter>
element? With browser support for the element improving, I would like to use it but currently can't as theprogressbar
role is proved too confusing for some users.The text was updated successfully, but these errors were encountered: