Skip to content

Modernize and rework input focus states - #1081

Open
tristen wants to merge 3 commits into
sand/unofrom
rework-focus
Open

tristen wants to merge 3 commits into
sand/unofrom
rework-focus

Conversation

@tristen

@tristen tristen commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Looks like this:

focus

Summary of changes

  • Native focus states: Focus outlines use the browser's :focus-visible, so keyboard users see them and mouse users don't.
  • New outline style: Focused elements get a 2px solid blue outline instead of a soft blue glow.
  • Form controls: Checkboxes, radios, switches and toggles get the outline. On range sliders it goes on
    the thumb.
  • assembly.js is now optional for focus: It only hides the outline when a select is clicked. Without it, focus states still work everywhere.
  • Breaking: The --focus-shadow variable is replaced by --focus-outline.

Closes #998

@tristen
tristen marked this pull request as ready for review October 15, 2026 21:50
@tristen
tristen requested a review from a team as a code owner October 15, 2026 21:50

This branch has not been deployed

No deployments
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