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

toggle controller inert attribute #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Jeremy-Walton
Copy link
Member

Why?

Remote content is still included in the tab index, even if off screen and not scrollable into view. This is relevant when modal or panels are dismissed but still have contents within them. This change allows the inert data attribute to be toggle along with the active class. This makes the contents non interactive. This makes them both more usable and more accessible.

What Changed

What changed in this PR?

  • Add option to toggle inert attribute when toggling panel and modals
  • Add test for the generator

Screenshots

inert.property.mov

@Jeremy-Walton Jeremy-Walton self-assigned this Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant