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

[charts] Make the helper ChartsText component public #11370

Merged
merged 8 commits into from
Dec 18, 2023

Conversation

alexfauquette
Copy link
Member

While working on mui/material-ui#40107 I realized that because we only support a subset of dominantBaseline values, I can not pass directly theme styles without TS error.

So I would need to have ChartsTextStyle types to write something like style: theme.typography.h2 as ChartsTextStyle

Instead of exporting only the type, I'm making the entire component available. Could be usefull for devs looking to add a title or other muti-line text

@alexfauquette alexfauquette added the component: charts This is the name of the generic UI component, not the React module! label Dec 11, 2023
@mui-bot
Copy link

mui-bot commented Dec 11, 2023

Deploy preview: https://deploy-preview-11370--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 40046ac

@LukasTy LukasTy changed the title [charts] Make the helper ChartsTextpublic [charts] Make the helper ChartsText component public Dec 14, 2023
Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

LGTM. 👌 👍

packages/x-charts/src/ChartsLegend/ChartsLegend.tsx Outdated Show resolved Hide resolved
alexfauquette and others added 3 commits December 14, 2023 13:41
Co-authored-by: Lukas <llukas.tyla@gmail.com>
Signed-off-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
@alexfauquette alexfauquette merged commit 50f6c5f into mui:next Dec 18, 2023
15 checks passed
alexfauquette added a commit to alexfauquette/mui-x that referenced this pull request Dec 22, 2023
Co-authored-by: Lukas <llukas.tyla@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: charts This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants