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

[base] Removes invisible tabbable elements from TrapFocus component #33677

Closed

Conversation

EthanStandel
Copy link
Contributor

Problem description

Described in issue #33380

Solution

Setting tabIndex={open ? 0 : -1} on sentinelStart and sentinelEnd elements so that they're only tabbable when the TrapFocus open prop is true. Thus removing the awkward experience where there are invisible tabbable elements.

Whoops

This is a replacement for this PR which was based off a fork of master. When I tried to sync my fork from upstream the PR autoclosed 🤦

@mui-bot
Copy link

mui-bot commented Jul 28, 2022

Details of bundle changes

Generated by 🚫 dangerJS against b7c41a0

@EthanStandel
Copy link
Contributor Author

And as it turns out, there does exist a reopen button that I wasn't seeing. So now I'm closing this... this is a little embarrassing at this point 😅

@zannager zannager added the package: base-ui Specific to @mui/base label Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: base-ui Specific to @mui/base
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants