-
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
[Carbon X] Implicit height on Button can sometimes render as zero height #1691
Comments
I'm happy to propose a fix to this; it would be a short PR 😅 However I've noticed on some of our mockups that buttons are typically 48px. Whereas the current Carbon version has So do you mind if I set |
CC @IBM/carbon-designers to see which one would be the correct height. Thanks! |
Carbon X button heights are 48px. But V9 they are 40px. |
Thanks @aagonzales for your response! |
🎉 This issue has been resolved in version 9.70.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* feat(RadioTile): support keyboard navigation * feat(Tile): support keyboard navigation * feat: use new icon strategy * docs(Tile): prevent page navigation on click of ClickableTile
Detailed description
Button height for Carbon X version is implicit:
https://github.com/IBM/carbon-components/blob/master/src/components/button/_mixins.scss#L84
This usually doesn't cause issues for most buttons, since they typically have content within.
However, the
ButtonSkeleton
fromcarbon-component-react
renders with a zero height due to this implicitheight: auto
setting.Suggested Fix
Adding a pixel value for height resolves in the Carbon X button base mixin resolves this issue.
The text was updated successfully, but these errors were encountered: