Skip to content

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

@vercel
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 Mar 3, 2025 6:34am

@schilchSICKAG
Copy link
Contributor Author

@KonnorRogers:
Any news on this one? Is there something we can do from our side to get this merged?

Copy link
Collaborator

@KonnorRogers KonnorRogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just need to remove the console.log and it should be good. Thanks for tackling this.

…-blur

# Conflicts:
#	docs/pages/resources/changelog.md
@claviska claviska added the fixed-in-wa This issue has been fixed or isn't relevant to Web Awesome. label Mar 4, 2025
@claviska claviska merged commit d2ce983 into shoelace-style:next Mar 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fixed-in-wa This issue has been fixed or isn't relevant to Web Awesome.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dialog throws an accessibility warning in the console when closed Drawer close triggers an error in Chrome (sometimes)

3 participants