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
Revisit the use of the hidden attribute in Accordion #40
Comments
My current opinion: don't use the
And, it feels better to follow the HTML spec. The examples used are "merely" example implementations... right? Bleh. Since it seems like |
Some more discussion: |
Note: ultimately decided to go with |
In the example of the Accordion widget, they use the
hidden
attribute to hide a collapsed accordion section. Their tabs example also uses thehidden
attribute.https://www.w3.org/TR/wai-aria-practices-1.1/examples/accordion/accordion.html
https://www.w3.org/TR/wai-aria-practices-1.1/examples/tabs/tabs-1/tabs.html
However, some argue that using CSS (i.e.
display: none
) is more appropriate, and the tabs widget is directly referenced as an example of wherehidden
should NOT be used!https://stackoverflow.com/questions/6708247/what-is-the-difference-between-the-hidden-attribute-html5-and-the-displaynone
https://html.spec.whatwg.org/#the-hidden-attribute
But IME, screen readers ignore
display: none
as well! Maybe there's a difference between what gets put on the accessibility tree... must investigate.The text was updated successfully, but these errors were encountered: