-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[IconButton] Add size large
and update styles
#26748
Conversation
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 argo's diffs look expected. I would just simplify the ButtonSizes example.
large
and update styleslarge
and update styles
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.
Co-authored-by: Olivier Tassinari <[email protected]>
…l-ui into fix/icon-button-sizes
I adjust those IconButton to have |
@siriwatknp Actually, I believe the icon button on the app bar should be size="large". It seems to be what Google uses on its products. How about we change it?
It feels different, I would personally vote for saying it's OK. But these screenshots, x2 the size on GitHub's comment are disturbing 😁 You increased the size of the padding, but it doesn't feel aligned: I think that it was more visible with the size="medium" but this wasn't the root cause. |
Co-authored-by: Olivier Tassinari <[email protected]>
updated the docs AppBar and also some demos in AppBar that make sense to use |
updated the docs AppBar and also some demos in AppBar that make sense to use
It is aligned now. |
|
||
```diff | ||
-<Icon fontSize="default">icon-name</Icon> | ||
+<Icon>icon-name</Icon> | ||
``` | ||
|
||
### IconButton | ||
|
||
- The default size's padding is reduced to `8px` which makes the default IconButton size of `40px`. To get the old default size (`48px`), use `size="large"`. The change was done to better match Google's products when Material Design stopped documenting the icon button pattern. |
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.
nit: the font size is a bit different for the size: 'large'
too, but not sure if it is worth mentioning.
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.
Can you point to me what is the different?
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.
Ah, I see. I think it is fine not to mention.
BREAKING CHANGE
The default size's padding is reduced to
8px
which makes the default IconButton size of40px
. To get the old default size (48px
), usesize="large"
. The change was done to better match Google's products when Material Design stopped documenting the icon button pattern.close #24045
🔗 https://deploy-preview-26748--material-ui.netlify.app/
large
small
andmedium
sizeButtonSizes
demo to include<IconButton size="large">
migration-v4.md
about breaking changeOne thing I notice, should
label
be removed fromIconButton
same as #26666