Skip to content

Conversation

@vixen24
Copy link
Contributor

@vixen24 vixen24 commented Dec 23, 2025

Allow focus indicator to display in full when navigating with the keyboard (using TAB)

Before
before

After
after

Allow focus indicator to display in full when navigating with the keyboard (using TAB)
@andyra
Copy link
Contributor

andyra commented Jan 5, 2026

Thanks, @vixen24! Instead of adjusting the margins, it would be preferable to bump the z-index when an element has focus. That way the spacing is never dependent on the style/weight of the focus ring. Something like this:

.popup__btn {
  &:focus-visible {
    z-index: 1;
  }
}

@vixen24 vixen24 marked this pull request as draft January 8, 2026 07:22
@vixen24 vixen24 marked this pull request as ready for review January 8, 2026 07:22
@vixen24 vixen24 marked this pull request as draft January 8, 2026 07:22
Remove margin-block-start from details in popup styles and add focus-visible style to popup item.
@vixen24
Copy link
Contributor Author

vixen24 commented Jan 8, 2026

@andyra Thanks for the feedback! I have applied your suggestion to bump z-index on :focus-visible rather than adjusting margins.

@vixen24 vixen24 marked this pull request as ready for review January 8, 2026 07:53
@andyra andyra merged commit c30b798 into basecamp:main Jan 8, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants