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

Showing the tooltip on focus-within #2750

Merged

Conversation

jdrush89
Copy link
Contributor

@jdrush89 jdrush89 commented Jan 9, 2023

Show the tooltip on focus-within. There were rules to show the tooltip on focus, but those will never get triggered since the tooltip element itself is not focusable. It should be the tooltip's child getting focus that triggers it showing.
This is required for Mouse-Keyboard parity which states that elements that show on hover should also show on focus.

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.

@jdrush89 jdrush89 requested review from a team and langermank January 9, 2023 17:35
@changeset-bot
Copy link

changeset-bot bot commented Jan 9, 2023

🦋 Changeset detected

Latest commit: 44c1fe7

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

@jdrush89 jdrush89 force-pushed the jdrush89/show-tooltip-on-focus-within branch from a54d872 to 5810297 Compare January 9, 2023 18:23
Copy link
Contributor

@iansan5653 iansan5653 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I 100% support this - it would fix a lot of headaches and hacky workarounds. Thanks!

@iansan5653 iansan5653 enabled auto-merge (squash) January 10, 2023 18:15
@iansan5653 iansan5653 merged commit dcb51c6 into primer:main Jan 10, 2023
@primer-css primer-css mentioned this pull request Jan 10, 2023
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.

None yet

3 participants