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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Typography] Fix styleOverrides, variants, and remaining colors #34444

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emlai
Copy link
Contributor

@emlai emlai commented Sep 23, 2022

Fixes #34290.
Fixes #29564.

TODO:

  • Fix extra generated CSS rule color: textPrimary.

@mui-bot
Copy link

mui-bot commented Sep 23, 2022

Details of bundle changes

@material-ui/core: parsed: +0.04% , gzip: +0.09%

Generated by 🚫 dangerJS against d3284d8

They were being overridden by the system props.
@emlai emlai changed the title [Typography] Fix styleOverrides not overriding system props [Typography] Fix styleOverrides and variants to work Sep 23, 2022
@emlai emlai force-pushed the fix-typography-color-override branch from cec28f4 to 7152cf7 Compare September 23, 2022 14:48
@emlai emlai marked this pull request as ready for review September 23, 2022 14:48
@emlai emlai changed the title [Typography] Fix styleOverrides and variants to work [Typography] Fix styleOverrides, variants, and remaining colors Sep 23, 2022
@ZeeshanTamboli ZeeshanTamboli added bug 🐛 Something doesn't work component: Typography The React component. labels Sep 24, 2022
@emlai
Copy link
Contributor Author

emlai commented Oct 21, 2022

The CI yarn proptypes check complains about missing color prop, but that seems wrong since this PR didn't add a color prop.

@madroneropaulo
Copy link

Any updates on this?

@emlai
Copy link
Contributor Author

emlai commented Dec 16, 2022

Nope. The CI test fails for some reason I don't understand. On top of that, my team is working on a major version update to our MUI-based library, which allows us to fix the problem that prompted #34290 by modifying the palette, removing the need for styleOverrides or other workarounds.

So this PR is currently not prioritized for us. Feel free to pick it up though :)

@michaldudak michaldudak removed their request for review January 4, 2023 14:27
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Aug 3, 2023
@Londeren
Copy link

Londeren commented Mar 1, 2024

Guys, any news here?

Comment on lines +140 to +143
sx={[
...(!Object.keys(colorTransformations).includes(color) ? [{ color }] : []),
...(Array.isArray(sx) ? sx : [sx]),
]}
Copy link
Member

@siriwatknp siriwatknp Mar 5, 2024

Choose a reason for hiding this comment

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

This makes me think that there must be something wrong with the Typography code wise.

Copy link
Member

@siriwatknp siriwatknp Mar 5, 2024

Choose a reason for hiding this comment

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

I'd say that we should look into this in v7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: Typography The React component. PR: out-of-date The pull request has merge conflicts and can't be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Typography] Cannot customize primary/error color Typography does not support color "success"
7 participants