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] Support rtl for gradient legend #16115

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

Conversation

JCQuintas
Copy link
Member

Resolves #16094

@JCQuintas JCQuintas added enhancement This is not a bug, nor a new feature component: charts This is the name of the generic UI component, not the React module! labels Jan 9, 2025
@JCQuintas JCQuintas self-assigned this Jan 9, 2025
@mui-bot
Copy link

mui-bot commented Jan 9, 2025

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

Generated by 🚫 dangerJS against 31e8470

Copy link

codspeed-hq bot commented Jan 9, 2025

CodSpeed Performance Report

Merging #16115 will not alter performance

Comparing JCQuintas:16094-charts-add-rtl-support-for-legend (31e8470) with master (6412b8c)

Summary

✅ 6 untouched benchmarks

@@ -118,11 +127,12 @@ const ChartsLabelGradient = consumeThemeProps(
function ChartsLabelGradient(props: ChartsLabelGradientProps, ref: React.Ref<HTMLDivElement>) {
const { gradientId, direction, classes, className, rotate, reverse, thickness, ...other } =
props;
const isRtl = useRtl();
Copy link
Member Author

Choose a reason for hiding this comment

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

Added on the ChartsLabelGrandient rather than the ContinuousLegend as doing so this change is used anywhere we use the gradient, if we use it somewhere else some day 🫠

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! enhancement This is not a bug, nor a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[charts] Add RTL support for legend
2 participants