-
Notifications
You must be signed in to change notification settings - Fork 83
fix(button): follow core Carbon icon positioning #697
fix(button): follow core Carbon icon positioning #697
Conversation
Deploy preview created for Built with commit: b1b7be42102becc61f3960524be2ece693d0d2c1 |
Deploy preview created for Built with commit: b1b7be42102becc61f3960524be2ece693d0d2c1 |
Deploy preview created for Built with commit: b1b7be42102becc61f3960524be2ece693d0d2c1 |
@emyarod I noticed the ghost and ghost danger buttons have a slight issue where the icon and text overlap in the text + icon variants: Otherwise looks great! |
@oliviaflory the ghost variants should be fixed now, also added a fix for the condensed icon layout! |
Deploy preview created for Built with commit: b1b7be42102becc61f3960524be2ece693d0d2c1 |
@emyarod thanks for correcting the overlap! My one question is about the condensed versions of the ghost buttons In the primary button, the regular is spaced out with ~64px between the text and icon, and the condensed seems to be ~ 4 or 8px space between text and icon In the ghost button version, they seem to be the same amount of space I can't see any knobs to change from regular to condensed in the Carbon react storybook, so I'm not sure what the expected spacing is, would you mind double checking? If this is the same as the Carbon one, lmk and I can approve! |
@oliviaflory the condensed sizing seems to be exclusive to alternatively I can make the condensed ghost button match the other condensed buttons. which option would you prefer to go with? |
Hey @emyarod @oliviaflory , looking into this a bit, it seems like Carbon react handles ghost button styles differently than Carbon web components. Is it simply that WC's ghost button styling need an update? Ideally we don't introduce new variables . |
@shixiedesign @oliviaflory sounds like it would be better to remove the |
@oliviaflory @shixiedesign the ghost buttons should be resolved now. I left the |
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.
LGTM!
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.
thanks @emyarod 👍
Related Ticket(s)
#696
Description
This PR updates the button styles to more closely match the styles from core Carbon and apply them to the web component version. Confirm that all button variants (default, icon, text + icon) appear as expected (including expressive versions)
original:
updated:
core Carbon (expressive):