ExpansionPanelDetail content should not be focusable when ExpansionPanel is collapsed #15649
Closed
2 tasks done
Labels
duplicate
This issue or pull request already exists
Today when an ExpansionPanel is collapsed the content is still focusable by tabbing which leads to a poorly accessible UX.
Expected Behavior 🤔
Content of ExpansionPanelDetail should not be focusable when the ExpansionPanel is collapsed.
Current Behavior 😯
Today when an ExpansionPanel is collapsed the content is still focusable by pressing keyboard "tab" key.
Examples 🌈
This can be reproduced on the ExpansionPanel demo https://codesandbox.io/s/l39qxq4pxz where tabbing focuses the panel content like chips and link and button.
Context 🔦
The current behavior does not promote good accessibility by default.
Managing focus could be done by custom code outside the library but that can become cumbersome. And most developer would probably not think of this or not have time to do it (The fact that it's not done in the demo page is a good example of that).
The text was updated successfully, but these errors were encountered: