Skip to content
Discussion options

You must be logged in to vote

This is intentional and follows the guidelines from the spec draft for focus-visible.
https://drafts.csswg.org/selectors/#the-focus-visible-pseudo which says

If a newly-displayed element automatically gains focus (such as an action button in a freshly opened dialog), that element should indicate focus.

We think it's an important step to assist users in knowing that focus has moved somewhere they did not explicitly try to send it.

An alternative is to set focus on the content first so users can interact as needed without showing any focus ring.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by segunadebayo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #3812 on March 10, 2026 18:48.