Skip to content
Discussion options

You must be logged in to vote

Hi there

As per the Disclosure documentation, nested focusable elements are not accessible and should not be implemented.

You must not nest focusable or actionable elements inside the DisclosureHeading. Nested actionable elements are difficult to discover for users of assistive technology as their existence is often not announced.

You can do something pretty similar though which would be perfectly accessible, using the Disclosure Primitive.

We've planned to build something called a Summary Detail component for a while, but it's never quite made the prioritization cut. I've knocked up a quick Codesandbox to demo what it might look like.

You might take some inspiration from that and build…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@chrischan-twilio
Comment options

Answer selected by serifluous
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants