-
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
Suggest change to aria-current step (not only a link) #1656
Comments
aria current has a lot of inconsistencies in how screen readers and browsers announce and support the different values. |
AFAICT, that browser support page has errors, or is out of date.
Here's another test that demos the list of values. https://demos.tink.uk/aria-current/ |
That said, I think the suggestion to remove the mention of "link" from the value is a good change. Thanks @LaurenceRLewis. |
@cookiecrook Note that the examples from Léonie Watson (Tink) are mostly placed on active (Link) roles, which work across the board, although there us some potential confusion with how NVDA announces some values. When placed on inactive elements, such as List items, aria-current has no to variable support. |
Is there a test case that demonstrates all the problems you mentioned? The code pen looked like it contained results but without the actual test cases. Thanks. |
@cookiecrook Do you have an example of test cases and results format so that I can improve the Codepen? |
By test case, I just mean HTML examples that can be used to demonstrate the problems. |
@cookiecrook I updated the Pen with the HTML Test cases. |
Thanks for the bug reports. I don't think those affect this PR though. Can be merged. |
The Specification for aria-current=Step
"A step token used to indicate a link within a step indicator for a step-based process, where the link is visually styled to represent the current step."
Both aria-current page and step are described in the normative text of the specification as associate with links. It is more lightly that aria-current page will be applied to a link, however this is not necessarily the case, for example, the current page in a breadcrumb is usually not linked. Arguably aria-current location should be used for a breadcrumb, but, you will find that 'page' is used more than 'location' on breadcrumbs.
The problem I see is that aria-current step may not be linked, and this would be an acceptable pattern, for example, a progress bar showing the current step in a purchase journey, in my experience, is not usually linked.
I recommend that the Spec for 1.2 be changed to "A step token used to indicate a step within a progress indicator for a step-based process, where the element is visually styled to represent the current step."
Would like to see a discussion on extending this to other values on inactive elements.
Reference
Accessible Rich Internet Applications (WAI-ARIA) 1.2 > aria-current (state)
The text was updated successfully, but these errors were encountered: