Skip to content

[Icon][SvgIcon] Change default fontSize from default to medium#23950

Merged
mbrookes merged 4 commits intomui:nextfrom
mbrookes:icons-fontsize-medium
Dec 12, 2020
Merged

[Icon][SvgIcon] Change default fontSize from default to medium#23950
mbrookes merged 4 commits intomui:nextfrom
mbrookes:icons-fontsize-medium

Conversation

@mbrookes
Copy link
Member

@mbrookes mbrookes commented Dec 10, 2020

Breaking changes

  • [Icon][SvgIcon] The default value of fontSize was changed from default to medium for consistency.
    In the unlikey event that you were using the value default, the prop can be removed:

    -<SvgIcon fontSize="default">icon-name</SvgIcon>
    +<SvgIcon>icon-name</SvgIcon>

For #20012

Motivated by #14993

@mbrookes mbrookes added breaking change Introduces changes that are not backward compatible. component: Icon The React component. component: SvgIcon The React component. labels Dec 10, 2020
@mbrookes mbrookes added this to the v5 milestone Dec 10, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Dec 10, 2020

Details of bundle changes

Generated by 🚫 dangerJS against 94e24ef

@mbrookes mbrookes merged commit 0eb481b into mui:next Dec 12, 2020
@mbrookes mbrookes deleted the icons-fontsize-medium branch December 12, 2020 12:25
@oliviertassinari oliviertassinari changed the title [Icons] Change default fontSize from default to medium [Icon][SvgIcon] Change default fontSize from default to medium Dec 13, 2020
@oliviertassinari oliviertassinari mentioned this pull request Dec 20, 2020
42 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Introduces changes that are not backward compatible. component: Icon The React component. component: SvgIcon The React component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants