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

[A11Y] Add HTML tag "aria-hidden" #255

Closed
Mitchnsun opened this issue Nov 20, 2019 · 5 comments · Fixed by #262
Closed

[A11Y] Add HTML tag "aria-hidden" #255

Mitchnsun opened this issue Nov 20, 2019 · 5 comments · Fixed by #262

Comments

@Mitchnsun
Copy link

For accessibility, collapse element should have an aria-hidden tag on the div.ReactCollapse--collapse

Cases: aria-hidden=

  • true collapse is closed
  • false collapse is opened
@nkbt
Copy link
Owner

nkbt commented Nov 20, 2019

Can it be set on a parent element?

@Mitchnsun
Copy link
Author

It could be set on a parent element indeed, the fact that all the children is hidden when closed, it should work.

By the way, for accessibility, it will be better if div.ReactCollapse--collapse has visibility:hidden. It permits for accessibility tools to know that the element is out of view.

Thanks for your answer

@nkbt
Copy link
Owner

nkbt commented Nov 21, 2019 via email

@Mitchnsun
Copy link
Author

I agree, it's probably better to externalize it.

Finally, I used UnmountedClose. Better for accessibility that the component not appearing in DOM when is hidden.

Thanks

@nkbt
Copy link
Owner

nkbt commented Nov 22, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants