Skip to content

Conversation

broccolinisoup
Copy link
Member

@broccolinisoup broccolinisoup commented Feb 2, 2024

Closes #4129

Changelog

New

Changed

Updated Button group CSS to make sure the icon buttons and buttons are rendered as expected when they have tooltips (both v1 and v2) on them

Removed

Rollout strategy

  • Patch release
  • Minor release
  • Major release; if selected, include a written rollout or migration plan
  • None; if selected, include a brief description as to why

Testing & Reviewing

Merge checklist

@broccolinisoup broccolinisoup requested review from a team and siddharthkp February 2, 2024 03:57
Copy link

changeset-bot bot commented Feb 2, 2024

🦋 Changeset detected

Latest commit: f427dfd

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

Copy link
Contributor

github-actions bot commented Feb 2, 2024

size-limit report 📦

Path Size
packages/react/dist/browser.esm.js 113.01 KB (+0.06% 🔺)
packages/react/dist/browser.umd.js 113.66 KB (+0.05% 🔺)

@broccolinisoup broccolinisoup force-pushed the button-group-tooltip-style-issues branch from f04ef75 to 3b0c065 Compare February 2, 2024 04:11
</ButtonGroup>
)

export const IconButtonsWithTooltip = () => (
Copy link
Member Author

Choose a reason for hiding this comment

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

Happy to remove them after the review if we don't want to keep them

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can leave em' :)

Copy link
Contributor

@langermank langermank left a comment

Choose a reason for hiding this comment

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

Just one small question, otherwise looks good 👍

</ButtonGroup>
)

export const IconButtonsWithTooltip = () => (
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we can leave em' :)

isolation: isolate;
&& > * {
&& > button,
Copy link
Contributor

Choose a reason for hiding this comment

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

@broccolinisoup is it possible these could be a tags as well? You could add a test story case for that and see.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oo great catch @langermank! Definitely, they can be a tags. I'll update the code.

@broccolinisoup

This comment was marked as off-topic.

@github-actions github-actions bot temporarily deployed to storybook-preview-4210 February 7, 2024 02:30 Inactive
@broccolinisoup broccolinisoup added the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Feb 7, 2024
@github-actions github-actions bot removed the update snapshots 🤖 Command that updates VRT snapshots on the pull request label Feb 7, 2024
@github-actions github-actions bot temporarily deployed to storybook-preview-4210 February 7, 2024 02:46 Inactive
@broccolinisoup broccolinisoup added this pull request to the merge queue Feb 8, 2024
Merged via the queue into main with commit 3acbd80 Feb 8, 2024
@broccolinisoup broccolinisoup deleted the button-group-tooltip-style-issues branch February 8, 2024 02:53
@primer primer bot mentioned this pull request Feb 8, 2024
broccolinisoup added a commit that referenced this pull request Feb 9, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 11, 2024
broccolinisoup added a commit that referenced this pull request Feb 11, 2024
…d on them (#4210)

* fix button group styling for tooltip and tooltip v2

* Add changeset

* take the a tag into account when styling

* add e2e tests for the buttons groups that use tooltip

* test(vrt): update snapshots

---------

Co-authored-by: broccolinisoup <broccolinisoup@users.noreply.github.com>
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.

Using <Tooltip> within <ButtonGroup> affects styling

4 participants