-
Notifications
You must be signed in to change notification settings - Fork 113
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
Comments
Can it be set on a parent element? |
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 Thanks for your answer |
You can add any styles by updating collapse class dynamically. Or do the same as with aria attributes - apply to parent element based on isOpened.
I get that these things are good to haves and would not mind a pr for aria things as they seem reasonable to have and have no visual side effects. Unfortunately I do not think it is as straightforward with visibility hidden though.
|
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 |
Glad it worked out. Thanks for your input!
|
For accessibility, collapse element should have an
aria-hidden
tag on thediv.ReactCollapse--collapse
Cases: aria-hidden=
true
collapse is closedfalse
collapse is openedThe text was updated successfully, but these errors were encountered: