Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Joy] Add --Icon-fontSize to components #31360

Merged
merged 7 commits into from
Mar 10, 2022

Conversation

siriwatknp
Copy link
Member

@siriwatknp siriwatknp commented Mar 8, 2022

馃枼 Preview

A follow-up PR from #31268 to let other components that usually contain Icon as a child control the icon font-size.

Also, fix some components that do not define variables for each size.

@mui-bot
Copy link

mui-bot commented Mar 8, 2022

Details of bundle changes

@mui/joy: parsed: +0.64% , gzip: +0.33%

Generated by 馃毇 dangerJS against 6451872

@@ -59,9 +59,9 @@ export default function JoyTypography() {
}}
>
<Input placeholder="Placeholder" />
<Input placeholder="Placeholder" startAdornment={<Mail fontSize="lg" />} size="sm" />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the adaptable icon, we don't need to force the fontSize anymore.

@siriwatknp siriwatknp marked this pull request as ready for review March 8, 2022 07:22
@siriwatknp siriwatknp added the package: joy-ui Specific to @mui/joy label Mar 8, 2022
Copy link
Member

@hbjORbj hbjORbj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks much cleaner to me.

@siriwatknp siriwatknp merged commit 5a2936e into mui:master Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: joy-ui Specific to @mui/joy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants