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

Make ActionList.LinkItem focus styles consistent with ActionList.Item when primary input method is the cursor #2549

Merged
merged 7 commits into from
Nov 9, 2022

Conversation

mperrotti
Copy link
Contributor

When an ActionMenu is opened using a cursor, the first menu item is focused and given a light background color. Before these changes, the background color was not applied to menu items that are links.

Screenshots

Menu items in the screenshots below are rendered with ActionList.LinkItem. There was no problem with ActionList.Item.

Before
Screen Shot 2022-11-07 at 7 25 00 PM

After
Screen Shot 2022-11-07 at 7 25 24 PM

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Take a look at the What we look for in reviews section of the contributing guidelines for more information on how we review PRs.

@mperrotti mperrotti requested review from a team and broccolinisoup November 8, 2022 00:36
@changeset-bot
Copy link

changeset-bot bot commented Nov 8, 2022

🦋 Changeset detected

Latest commit: 260bf22

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 Nov 8, 2022

size-limit report 📦

Path Size
dist/browser.esm.js 78.89 KB (+0.02% 🔺)
dist/browser.umd.js 79.54 KB (+0.02% 🔺)

@mperrotti mperrotti temporarily deployed to github-pages November 8, 2022 00:44 Inactive
@mperrotti mperrotti temporarily deployed to github-pages November 8, 2022 16:14 Inactive
@mperrotti mperrotti temporarily deployed to github-pages November 8, 2022 16:30 Inactive
@mperrotti mperrotti temporarily deployed to github-pages November 9, 2022 19:16 Inactive
@mperrotti mperrotti merged commit 205e1d2 into main Nov 9, 2022
@mperrotti mperrotti deleted the mp/fix-linkitem-focus-style branch November 9, 2022 23:32
@primer-css primer-css mentioned this pull request Nov 9, 2022
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