Skip to content

Conversation

@TylerJDev
Copy link
Member

This fix continues from #4166, but changes the selector for links to target the class instead of :focus-visible pseudo selector. This is because, if the input modality isn't already keyboard in Safari, :focus-visible styles may not be applied, so we need to rely on our .focus-visible for now.

Changelog

Changed

  • Switched pseudo selector target to class selector (i.e. a:focus-visible to a.focus-visible)
  • Added onto ActionMenu Storybook example

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@changeset-bot
Copy link

changeset-bot bot commented Mar 1, 2024

🦋 Changeset detected

Latest commit: 76a404b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@primer/react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 113.58 KB (+0.01% 🔺)
packages/react/dist/browser.umd.js 114.25 KB (+0.01% 🔺)

@TylerJDev TylerJDev marked this pull request as ready for review March 1, 2024 16:21
@TylerJDev TylerJDev requested review from a team and pksjce March 1, 2024 16:21
@github-actions github-actions bot temporarily deployed to storybook-preview-4334 March 1, 2024 16:23 Inactive
@joshblack joshblack added this pull request to the merge queue Mar 4, 2024
Merged via the queue into main with commit f685d52 Mar 4, 2024
@joshblack joshblack deleted the tylerjdev/focus-visible-quick-fix branch March 4, 2024 18:57
@primer primer bot mentioned this pull request Mar 4, 2024
lukasoppermann pushed a commit that referenced this pull request Apr 16, 2024
* Switch selector to class, add to ActionMenu example

* Account for HCM focus-visible style

* Add changeset

* Update snapshots
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.

4 participants