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

Fix a11y issues for closing components with focused children #2383

Open
wants to merge 2 commits into
base: next
Choose a base branch
from

Conversation

schilchSICKAG
Copy link
Contributor

Hey Shoelace team,

as other people have pointed out, there are some issues with closable components when they have focused slotted children. We already created patches for our own Shoelace fork and I wanted to mirror those back to you in case they are helpful.

This PR adds a new utility function blurActiveElement that makes sure the focus for elements is removed when they become invisible.

Fixes #2335
Fixes #2283

Copy link

vercel bot commented Feb 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
shoelace ✅ Ready (Inspect) Visit Preview Feb 21, 2025 7:11am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant