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(Expandable): Center icon #75
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/treely/boemly/Fm2x5Zm2W2pV9PAMfcof3FBNZmZJ |
size-limit report 📦
|
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.
Would it work to use the IconButton
component?
Forget this. I thought the icon in the button on the right is meant. But now I realised that you mean the icon on the left. |
b351f22
to
4f18b60
Compare
a127d05
to
b11b02d
Compare
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.
Nice!
🎉 This PR is included in version 1.12.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Previously, any icon would be aligned to the left top. Only square phosphor-icons with size 80 would appear centered.
This change centers all icons - or really any jsx element provided in the icon prop - vertically and horizontally in the parent div.
Before:
After: