-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
Align FontIcon inside Button component #1958
Comments
material ui not need css file? |
+1. I tried both "before" and "after" for the labelPosition property, but nothing changed. |
I included css file from I'll update my post. Thx. |
This partialy solve the issue #2014. We still have |
+1 for centering the icon. |
+1 |
My very first experience with this library: broken buttons |
@subjectix I think that the up coming v0.14 is the right moment to fix this (introduce a small breaking change). |
@mccxiv You are right, the issue is that the demo components are altered by the documentation. We are moving each demo into an isolated component, this will be fixed and shouldn't happnend again. |
@oliviertassinari Yes I agree. any clue how to solve this? I'm clueless 😬 |
I aligned my
|
#2874 Is partially solving the issue. |
Bumps [notistack](https://github.com/iamhosseindhv/notistack) from 0.9.11 to 0.9.17. - [Release notes](https://github.com/iamhosseindhv/notistack/releases) - [Changelog](https://github.com/iamhosseindhv/notistack/blob/master/CHANGELOG.md) - [Commits](iamhosseindhv/notistack@v0.9.11...v0.9.17) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
At documentation page the icon is accurately align to the left side of the button. But it looks different in my demo.
Code:
Styles:
I included this css file because I wanted to get the same icon as in doc page. It is just for test.
Of course I can do style inlining for the button and fix the issue. But it doesn't look good for me.
How to align icons inside buttons properly?
The text was updated successfully, but these errors were encountered: