-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix(button): correct sizes for icon-only buttons #5195
fix(button): correct sizes for icon-only buttons #5195
Conversation
Deploy preview for the-carbon-components ready! Built with commit 6e55e58 https://deploy-preview-5195--the-carbon-components.netlify.com |
Deploy preview for carbon-components-react failed. Built with commit 6e55e58 https://app.netlify.com/sites/carbon-components-react/deploys/5e31ffa32f641b00099dfaa8 |
Deploy preview for carbon-elements ready! Built with commit 6e55e58 |
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.
looks good to me but just want confirmation from the design team regarding this
@emyarod yes the icon button at each size we have should always be square. |
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.
Looks great, thanks for hopping in and fixing this. 👍 ✅
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.
looks good to me pending design approval
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.
The tertiary icon only button (field) in Vanilla needs to be square still.
Also I noticed some two other things which can be fixed separately in different prs.
- We don't have a tertiary button in the react storybook and need to add it.
- Vanilla needs to have the icon only button for all sizes, not just field.
these will be addressed in #5201 so we can just update this PR to fix the tertiary icon button |
Good catch, @laurenmrice! |
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.
looks good to me ! thanks for doing this ! 🙌🏻
Closes #5194
Fixes the sizing for icon-only buttons to make them square regardless of size (default, field, small)
Changelog
Changed
padding-left
andpadding-right
on icon-only button specific selectorsTesting / Reviewing
Run react storybook, inspect sizes with dev tools