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

Tooltip: Tooltip V2 as an experimental/draft with the new popover API #3394

Merged
merged 61 commits into from
Sep 26, 2023

Conversation

broccolinisoup
Copy link
Member

@broccolinisoup broccolinisoup commented Jun 9, 2023

Describe your changes here.

This PR implements the new popover API (with polyfills), updates the components API that was accepted on https://github.com/github/primer/pull/2339 and addresses the accessibility remediations that were found on https://github.com/github/primer/issues/1790.

Integration PR at dotcom: https://github.com/github/github/pull/288842 (Hubbers link only)

Huge thanks to @keithamus for pairing with me on the new popover API! ✨ This is the first popover implementation on React so I would really love your thoughts and feedback 🙏🏻

TODO

  • Sort out the CSS polyfill
  • Tooltip should work within ActionMenu.Anchor when the trigger is a button
  • Update the documentation once get a 👍🏻 on the implementation
  • Add a changeset

Screenshots

Please see the storybook examples here: https://primer-dc05b46969-13348165.drafts.github.io/storybook/?path=/story/drafts-components-tooltip--default
(Currently there is no caret on the tooltip as we are in the process of proposing this as a new visual design - reference)

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Changes are SSR compatible
  • 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.

@broccolinisoup broccolinisoup added the skip changeset This change does not need a changelog label Jun 9, 2023
@changeset-bot
Copy link

changeset-bot bot commented Jun 9, 2023

🦋 Changeset detected

Latest commit: 133246d

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 Minor

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 Jun 9, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 104.36 KB (+3.6% 🔺)
dist/browser.umd.js 104.94 KB (+3.58% 🔺)

@broccolinisoup broccolinisoup temporarily deployed to github-pages June 9, 2023 09:35 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 June 9, 2023 09:36 Inactive
@broccolinisoup broccolinisoup temporarily deployed to github-pages July 20, 2023 07:19 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 July 20, 2023 07:19 Inactive
@broccolinisoup broccolinisoup temporarily deployed to github-pages July 24, 2023 05:26 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 July 24, 2023 05:27 Inactive
@broccolinisoup broccolinisoup temporarily deployed to github-pages July 24, 2023 05:43 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 July 24, 2023 05:44 Inactive
@broccolinisoup broccolinisoup temporarily deployed to github-pages July 24, 2023 07:59 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 July 24, 2023 07:59 Inactive
@broccolinisoup broccolinisoup marked this pull request as ready for review July 24, 2023 08:30
@broccolinisoup broccolinisoup requested review from a team and mperrotti July 24, 2023 08:31
@broccolinisoup broccolinisoup temporarily deployed to github-pages September 20, 2023 23:29 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 September 20, 2023 23:30 Inactive
@broccolinisoup broccolinisoup temporarily deployed to github-pages September 21, 2023 01:33 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 September 21, 2023 01:34 Inactive
@broccolinisoup broccolinisoup temporarily deployed to github-pages September 25, 2023 03:29 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 September 25, 2023 03:30 Inactive
@broccolinisoup broccolinisoup force-pushed the bs/experimental-tooltip-with-popover branch from 81b09de to a05474e Compare September 25, 2023 03:47
@broccolinisoup broccolinisoup temporarily deployed to github-pages September 25, 2023 03:53 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 September 25, 2023 03:53 Inactive
Copy link
Member

@siddharthkp siddharthkp left a comment

Choose a reason for hiding this comment

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

Looking great now! Ship it!

docs/gatsby-config.js Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to storybook-preview-3394 September 25, 2023 23:38 Inactive
@broccolinisoup broccolinisoup changed the title Tooltip: Tooltip component as an experimental with the new popover API Tooltip: Tooltip V2 as an experimental/draft with the new popover API Sep 25, 2023
@broccolinisoup broccolinisoup added this pull request to the merge queue Sep 25, 2023
Merged via the queue into main with commit 9cd50f7 Sep 26, 2023
32 checks passed
@broccolinisoup broccolinisoup deleted the bs/experimental-tooltip-with-popover branch September 26, 2023 00:02
@primer primer bot mentioned this pull request Sep 26, 2023
@primer primer bot mentioned this pull request Sep 28, 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
3 participants