What fresh hell is THIS now? - Patrick Lauke
[role=dialog][aria-hidden=true] { display: none }
.modal-hidden
li + li::before { display: inline-block; margin-left: 0.4em; padding-left: 0.4em; border-left: 1px solid #333; content: ''; }
::before
. Only use :before
in IE8.
[aria-hidden]
to all the things me thinks.
aria-selected
, so that should suffice.
aria-expanded
is not needed per spec.
@powrsurg
So it seems like Oaap is not a good site for looking up accurate examples of how you should do things.
Not in the case of aria-expanded
at least.
Aria-expanded should only be used on controls. And aria-hidden is only needed when you're doing something like setting the height to 0 to hide things, rather than display: none;
In practical terms if you want to hide something from everyone display:none
and friends is enough. If you want to hide stuff just from screen reader users then aria-hidden=true
is enough as long as the hidden content does not include interactive elements.
[Claire Ryberg, a11y] I'm being asked by a designer to implement two buttons, one that is visible and keyboard tab-able but hidden to a screen reader that reveals a non-accessible version of Content A, and another button that is hidden visually but is tab-able and accessible by screen reader only and reveals the same Content A, but in an accessible format.
Is creating content that is tab-able by screen reader only even possible, let alone advisable? I'm getting all sorts of red flags with this request.
@powrsurg
Right, but that goes against what the examples there suggest. And aXe is not reporting any errors either ....
its not a conformance error to use on quite a few roles http://www.w3.org/TR/wai-aria-1.1/#aria-expanded, so you wouldn't see an error, its more about what works best in real world implementation.
@dylanb
I would like to see ARIA be slightly more prescriptive about what is announced when...there seems to be quite a few gaps between what conforms and what actually works
ARIA does not prescribe how AT express the aural UI, only how stuff is mapped to acc APIs in browsers. There is room/opportunity for mapping the aural UI of ARIA and describing expected expression of semantics vis the actual expression in AT.
@MichielBijl
If the browsers expose it correctly through the accessibility tree; VO shouldn't announce it.
it's a not well defined aspect of acc name calculation, hidden elements still contribute to accessible names for aria-labelledby relationships, but it is not defined AFAIK whether native label-for relationships should work likewise, need to spec it...