Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus-visible ActionMenu link fix #4334

Merged
merged 4 commits into from
Mar 4, 2024
Merged

Conversation

TylerJDev
Copy link
Contributor

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

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

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
30 checks passed
@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.

3 participants