-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[charts] Add docs on tooltip style #17601
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] Add docs on tooltip style #17601
Conversation
Thanks for adding a type label to the PR! 👍 |
Please add one type label to categorize the purpose of this PR appropriately:
|
Deploy preview: https://deploy-preview-17601--material-ui-x.netlify.app/ Updated pages: |
CodSpeed Performance ReportMerging #17601 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with the idea. I propose a modification to have a working demo ;)
slotProps={{ | ||
tooltip: { | ||
sx: { | ||
[`.${chartsTooltipClasses.valueCell}`]: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[`.${chartsTooltipClasses.valueCell}`]: { | |
[`& .${chartsTooltipClasses.valueCell}`]: { |
Otherwise it's equivalent to `&.${chartsTooltipClasses.valueCell}`
Oops 😛 |
Fixes #17594.
The tooltip has the particularity that it cannot be styled directly with
sx
. This PR adds a docs section to explain how to style it.