-
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
Unclear purpose of aria-valuemin
and aria-valuemax
when aria-valuetext
is used
#1128
Comments
ATs can also use min and max to express where in the range the current value is (i.e. as a percentage). ATs get this information for native host language range elements as well as for native/desktop toolkits. Exactly how they choose to use this information is (I would argue) up to them. But I think we want consistency: Users, and their ATs, should not have to worry if something is native web, native desktop, or divs and spans ARIAed up into widgethood (widgetocity?). 😄 |
If aria-valuenow is output as a percentage value (for progressbar and scrollbar) it is unclear what aria-valuemin and aria-valuemax are needed for, since their value is irrelevant. So the following would lead to the same output (50%)
In my opinion it would be sufficient if only aria-valuenow or aria-valuetext is given. |
I guess it lets the author choose numbers that make sense for their domain, i.e. if there are 17 files to load, set min=0 and max=17, and then valuenow can just be how many files are loaded. It might make the code look cleaner than calculating the percentage. Also, AT could hypothetically say "5 of 17" instead of percentage if the user asked for details. |
When discussing the current issue: "Unclear purpose of |
I don't think There are many cases when there is a numerical value that is not a percentage, as in @carmacleod's "5 of 17" example. And I think there should be much clearer guidance about what should happen when |
See w3c/aria-practices#1279 (comment)
I think the ARIA spec could be clearer about how ATs are expected to use these attributes. As it is, if an AT only ever exposes
aria-valuetext
, it is unclear what the purpose is for providingaria-valuemin
,aria-valuemax
and evenaria-valuenow
.If an AT communicates that there is a minimum and maximum value, should it use the numbers? The number won't make much sense if changing to that value is then communicated differently with
aria-valuetext
. But the AT can't know ahead of time what the app will changearia-valuetext
to after changing the value.Maybe when
aria-valuenow
matches eitheraria-valuemin
oraria-valuemax
, the AT could say that the current value is the minimum or maximum value?How do existing AT handle these attributes?
Roles where they apply:
meter
progressbar
scrollbar
separator
(if the element is focusable)slider
spinbutton
The text was updated successfully, but these errors were encountered: