-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat(icon-button): add padding interface to component FE-5567 #5665
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 2bce6b7:
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
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.
Happy to approve once the issue @robinzigmond has been addressed 👍🏼 I also noticed the behaviour in the codesandbox where the icon goes dark when the icon button is in focus.
The `IconButton` now supports the `padding` interface to allow consuming projects to override the default padding values.
5d67b4d
to
d960642
Compare
…tem if no onClick/href set No longer sets the padding styling on the internal anchor or button elements rendered internally by the `MenuItem` if both `onClick` and `href` props are not passed fix #5640
d960642
to
45195c6
Compare
🎉 This PR is included in version 111.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
fix #5640
Proposed behaviour
The
IconButton
now supports thepadding
interface to allow consuming projects to override thedefault padding values.
No longer sets the padding styling on the internal anchor or button elements rendered internally by
the
MenuItem
if bothonClick
andhref
props are not passedCurrent behaviour
No support for padding interface in
IconButton
Default padding is applied to anchor/ button elements when no
onClick
/href
passedChecklist
QA
Additional context
Testing instructions
The following CodeSandbox is an example of the broken behaviour.
You can see the new behaviour by looking at the version in the comment by
codesandbox[bot]
.