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

Don't render tooltip on IconButton when tag is summary #1284

Merged
merged 2 commits into from
Aug 8, 2022

Conversation

jonrohan
Copy link
Member

@jonrohan jonrohan commented Aug 8, 2022

Currently there's an issue with the IconButton component when being rendered with a tag: :summary option.

image

The <summary> gets wrapped with a div that breaks any details dialog triggers.

I'm proposing that we don't render a tooltip when the tag is a summary. This is because to place it properly we would need to put the tooltip outside of the <details> element.

@jonrohan jonrohan requested review from a team and keithamus August 8, 2022 19:06
@changeset-bot
Copy link

changeset-bot bot commented Aug 8, 2022

🦋 Changeset detected

Latest commit: 18b11cb

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 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

@jonrohan jonrohan changed the title Don't render tooltip in summary Don't render tooltip on IconButton when tag is summary Aug 8, 2022
@jonrohan jonrohan temporarily deployed to github-pages August 8, 2022 19:11 Inactive
Copy link

@prashkan prashkan left a comment

Choose a reason for hiding this comment

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

Thanks for the quick remediation here! 🎉

@jonrohan jonrohan merged commit 401dac2 into main Aug 8, 2022
@jonrohan jonrohan deleted the bug_fix_icon_button branch August 8, 2022 20:16
@primer-css primer-css mentioned this pull request Aug 8, 2022
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.

2 participants