Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

Fix rounded corners for button group with tooltip #1413

Closed
wants to merge 1 commit into from

Conversation

siddharthkp
Copy link
Contributor

@siddharthkp siddharthkp commented Jan 10, 2019

Found a big in master, fixed it on top of #1371

@siddharthkp siddharthkp added the 🐞bug Bug reports and bug fixes label Jan 10, 2019
const groupRadiusStyles = css`
${Button.Element}:first-child {
${Button.Element}:first-child:not(:last-child),
${Tooltip.Trigger}:first-child > ${Button.Element} {
Copy link
Contributor

@landitus landitus Jan 11, 2019

Choose a reason for hiding this comment

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

I'm not sure about adding Tooltip specific code inside the Button Group. What about wrapping each ButtonGroup child internally, so we can reference that ButtonGroup.Item to access the Button and apply the correct border-radius? This would be more robust and keep components independent.

wdyt?

@siddharthkp siddharthkp changed the base branch from master to popper January 14, 2019 11:42
@siddharthkp
Copy link
Contributor Author

Fixed in #1371

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞bug Bug reports and bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants