Skip to content

Conversation

@JCQuintas
Copy link
Member

@JCQuintas JCQuintas commented May 2, 2025

  • Create a ChartsContrastingText component that calculates a contrasting text color (black/white) from the provided textBackground
  • Use the new component wherever possible.

IMO if we want to go forward with this, we should probably change our palettes to consistently use only one of the colors to prevent issues like seen in some of the argos tests.

@JCQuintas JCQuintas added type: new feature Expand the scope of the product to solve a new problem. scope: charts Changes related to the charts. labels May 2, 2025
@JCQuintas JCQuintas self-assigned this May 2, 2025
@mui-bot
Copy link

mui-bot commented May 2, 2025

@codspeed-hq
Copy link

codspeed-hq bot commented May 2, 2025

CodSpeed Performance Report

Merging #17662 will not alter performance

Comparing JCQuintas:try-contrasting-text (4cc14d6) with master (db88b6c)

Summary

✅ 8 untouched benchmarks

@bernardobelchior
Copy link
Member

Doesn't seem to be working in all cases:

image

https://app.argos-ci.com/mui/mui-x/builds/35597/158137685

@JCQuintas
Copy link
Member Author

Doesn't seem to be working in all cases:

Yeah, there are quite a few of the argos tests where that happens.

@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label May 21, 2025
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: out-of-date The pull request has merge conflicts and can't be merged. scope: charts Changes related to the charts. type: new feature Expand the scope of the product to solve a new problem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants