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 visual refresh #2603

Merged
merged 30 commits into from
Mar 18, 2024
Merged

Tooltip visual refresh #2603

merged 30 commits into from
Mar 18, 2024

Conversation

langermank
Copy link
Contributor

Authors: Please fill out this form carefully and completely.

Reviewers: By approving this Pull Request you are approving the code change, as well as its deployment and mitigation plans.
Please read this description carefully. If you feel there is anything unclear or missing, please ask for updates.

What are you trying to accomplish?

Match the updated design we're drafting in Primer React. Check out the design docs for more details.

  • Fixes the color tokens to use v8 with fallback
  • Removes the caret
  • Adjusts offset
  • Removes animation delay

Integration

Bump PCSS

Risk Assessment

  • [x ] Low risk the change is small, highly observable, and easily rolled back.
  • Medium risk changes that are isolated, reduced in scope or could impact few users. The change will not impact library availability.
  • High risk changes are those that could impact customers and SLOs, low or no test coverage, low observability, or slow to rollback.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • 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.

@langermank langermank requested review from a team and jonrohan February 13, 2024 00:50
Copy link

changeset-bot bot commented Feb 13, 2024

🦋 Changeset detected

Latest commit: 921a5f2

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

This PR includes changesets to release 1 package
Name Type
@primer/view-components 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

@langermank langermank changed the title Toolti visual refresh Tooltip visual refresh Feb 13, 2024
Copy link
Contributor

github-actions bot commented Feb 13, 2024

⚠️ Visual differences found

Our visual comparison tests found UI differences. Please review the differences by viewing the files changed tab to ensure that the changes were intentional.

Review visual differences

Copy link
Member

@jonrohan jonrohan left a comment

Choose a reason for hiding this comment

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

Love the cleanup 👍🏻

.changeset/curly-camels-kneel.md Outdated Show resolved Hide resolved
Co-authored-by: Jon Rohan <rohan@github.com>
Comment on lines 113 to 120
:host:after{
position: absolute;
display: block;
right: 0;
left: 0;
height: 12px;
content: "";
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we need this too keep the tooltip open when cursor leaves the trigger to hover the tooltip text.

Comment on lines 150 to 154
:host(.tooltip-s):after,
:host(.tooltip-se):after,
:host(.tooltip-sw):after {
bottom: 100%
}
Copy link
Member

Choose a reason for hiding this comment

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

I think these ::after classes are still needed to position the empty content that I mentioned here about hovering the tooltip text

Comment on lines 161 to 165
:host(.tooltip-n):after,
:host(.tooltip-ne):after,
:host(.tooltip-nw):after {
top: 100%;
}
Copy link
Member

Choose a reason for hiding this comment

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

@camertron camertron merged commit bbc1776 into main Mar 18, 2024
30 checks passed
@camertron camertron deleted the toolti-visual-refresh branch March 18, 2024 20:07
@primer primer bot mentioned this pull request Mar 18, 2024
jonrohan added a commit that referenced this pull request Mar 27, 2024
Co-authored-by: langermank <langermank@users.noreply.github.com>
Co-authored-by: Jon Rohan <rohan@github.com>
Co-authored-by: Cameron Dutro <camertron@gmail.com>
Co-authored-by: camertron <camertron@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants