Use `visibility:hidden` in addition to `overflow:hidden`?
Closed this issue · 2 comments
markwoon commented
When the node is collapsed, would it be possible to use visibility:hidden
in addition to overflow:hidden
?
Right now, if I'm tabbing through links on a page, it will tab to links in collapsed nodes. Adding visibility:hidden
would prevent this from happening.
selbekk commented
You can actually do this yourself if you want - both with aria-hidden
and visibility: hidden
- by passing the props based on the isOpened
prop.
I agree, however, that this could be done by the lib itself.
nkbt commented
You can use onRest
to add any extra classes to your element and define any extra css necessary for the resting component