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: Revert tooltip remediations until resolving breaking changes at dotcom #3169

Merged
merged 2 commits into from
Apr 17, 2023

Conversation

broccolinisoup
Copy link
Member

@broccolinisoup broccolinisoup commented Apr 13, 2023

TL;DR

Tooltip component remediations and refactor causes breaking changes at dotcom and we are reverting the changes back until we resolve the issues.

PR that we are reverting: #3032

Context

Some of the mis-usages of Tooltip either causes breaking changes or requires collaboration with the feature teams (potentially design input) to find a way to convey the tooltip information in other ways because some tooltips are used on non-interactive elements and we should be correcting them. Here (Hubbers only link) is a good example of a breaking change and a usage that requires collaboration to be corrected.

In this usage (Hubbers only link), folks use StyledOcticon as a trigger element for Tooltip. The reason it breaks is that StyledOcticons are not using React.forwardRef() and in the new implementation we are trying to give ref to the trigger element to do some checks for accessibility. See error log (Hubbers only link) and we have an issue filed for our icons to use React.forwardRef() as well. The plan is to revert the PR back and take this issue into the design office hours to see how we are going to address the breaking changes.

@broccolinisoup broccolinisoup added the skip changeset This change does not need a changelog label Apr 13, 2023
@broccolinisoup broccolinisoup requested review from a team and colebemis April 13, 2023 23:05
@changeset-bot
Copy link

changeset-bot bot commented Apr 13, 2023

⚠️ No Changeset found

Latest commit: 23bf788

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
dist/browser.esm.js 95.59 KB (-0.28% 🔽)
dist/browser.umd.js 96.14 KB (-0.34% 🔽)

@broccolinisoup
Copy link
Member Author

cc @TylerJDev

Copy link
Member

@joshblack joshblack left a comment

Choose a reason for hiding this comment

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

Sorry that it ended up not working out, such a bummer 😞

@broccolinisoup broccolinisoup added this pull request to the merge queue Apr 17, 2023
Merged via the queue into main with commit 86655ad Apr 17, 2023
@broccolinisoup broccolinisoup deleted the revert-tooltip-prs branch April 17, 2023 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip changeset This change does not need a changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants