Skip to content
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

Conditional reveal aria-hidden/display none being used #686

Closed
adamsilver opened this issue May 10, 2018 · 3 comments
Closed

Conditional reveal aria-hidden/display none being used #686

adamsilver opened this issue May 10, 2018 · 3 comments
Labels
accessibility feature request User requests a new feature

Comments

@adamsilver
Copy link
Contributor

adamsilver commented May 10, 2018

Currently, the [aria-hidden=true] attribute/selector is being used to visually hide the conditional panel when clicking a checkbox or radio button.

My thinking is that we can just use .js-hidden which will stop a potential flicker and hide the panel for both sighted users and screen reader users without having to have special attributes just for AT.

@NickColley
Copy link
Contributor

NickColley commented May 10, 2018

I believe originally we tried .js-hidden and hidden but then moved towards [aria-hidden=true] to avoid problems but I confess to have forgotten what that problem was.

Think if there's not good reason, using hidden makes sense. 👍

@adamsilver
Copy link
Contributor Author

adamsilver commented May 10, 2018

Oh I know what that might be, @NickColley. The reveal is based on checkbox/radio checked state. So js-hidden might bugger that by hiding it regardless of state.

I would still suggest that a simple .hidden will hide it from everyone without having to use AT specific attributes. Admittedly this is a bit nit-picky.

@NickColley NickColley added feature request User requests a new feature accessibility labels Jul 17, 2018
@NickColley
Copy link
Contributor

We resolved this by using a modifier rather than a global class in #885

Thanks for raising Adam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility feature request User requests a new feature
Projects
None yet
Development

No branches or pull requests

2 participants