Skip to content

fix(Button): use focus-visible for keyboard focus - #562

Closed
cellrishi-code wants to merge 2 commits into
React95:masterfrom
cellrishi-code:fix/button-focus-visible
Closed

cellrishi-code wants to merge 2 commits into
React95:masterfrom
cellrishi-code:fix/button-focus-visible

Conversation

@cellrishi-code

Copy link
Copy Markdown

Summary

  • use :focus-visible for Button focus styling
  • keep the keyboard focus indicator while avoiding the persistent focus appearance after pointer clicks

Why

This improves keyboard accessibility while avoiding an unnecessary focus indicator after mouse interaction.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@ggdaltoso

Copy link
Copy Markdown
Member

Thanks for the PR, @cellrishi-code! We're going to keep :focus here, though. On Windows 95 a button keeps its dotted focus rectangle after you click it, and React95 follows that look. Thanks for looking into keyboard focus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants