-
Notifications
You must be signed in to change notification settings - Fork 597
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
Dialog: Show Tooltip
on "close" button
#5436
Conversation
🦋 Changeset detectedLatest commit: bdfdc66 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
👋 Hi, this pull request contains changes to the source code that github/github depends on. If you are GitHub staff, we recommend testing these changes with github/github using the integration workflow. Thanks! |
size-limit report 📦
|
Some of the snapshots look a bit odd due to the tooltip placement, but I believe this is just something with how the snapshots were taken (maybe timing?) and not an actual issue with the tooltip, as it cannot be produced locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TylerJDev those snapshots are kind of scary! Could we maybe adjust the test to add a short delay? Do you think that's the issue? 🤔
@TylerJDev @langermank sorry to barge in 🙃 I saw the Slack notification and wanted to mention that we have one open issue regarding Tooltip misplacement on Dialogs that we probably need to fix it first 😬 #4734 |
Hi! This pull request has been marked as stale because it has been open with no activity for 60 days. You can comment on the pull request or remove the stale label to keep it open. If you do nothing, this pull request will be closed in 7 days. |
a3c0fcf
to
94a8eb0
Compare
@@ -137,7 +137,7 @@ export const WithSx = ({width, height, subtitle}: DialogStoryProps) => { | |||
{buttonType: 'danger', content: 'Delete the universe', onClick: onDialogClose}, | |||
{buttonType: 'primary', content: 'Proceed'}, | |||
]} | |||
sx={{borderColor: 'accent.emphasis', borderWidth: '1px', borderStyle: 'solid'}} | |||
sx={{borderColor: 'accent.emphasis', borderWidth: '1px', borderStyle: 'solid', animation: 'none !important'}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a very small difference between the dev
component snapshots (0.02 pixel difference). It seems like this was caused by the animation, but only affected the colorblind theme.
It would sometimes pass/fail, so I marked it off as being flaky via the custom CSS. It never affected the non-dev stories.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work solving this very weird, annoying problem!
Part of https://github.com/github/primer/issues/3726
Removes
unsafeDisableTooltip
fromIconButton
inDialog
, and removes eslint disable along with it.Changelog
Removed
Rollout strategy
Testing & Reviewing
Merge checklist