-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[tree view][RichTreeView] Custom styling not working #13259
Comments
Hello @SageJustus, You are trying add styles to the Icon as you would on the Will consider the issue as closed, do not hesitate to re-open it if you find something wrong 😄 |
@SageJustus: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
the modified demo Sandbox not found It's likely that the Sandbox you're trying to access doesn't exist or you don't have the required permissions to access it. |
@arthurbalduini I assume your modified code is as follows:
So what does the following code do? Has it taken effect?
|
Sorry, I just changed the privacy of the Sandbox so you can access it. |
The mentioned line will not have the desired effect either. |
@arthurbalduini Well I think this is a documentation issue and the examples in the documentation should be updated. |
I agree with you, will send a PR to update the docs ASAP. Thank you ! |
Steps to reproduce
Link to live example: demo
Steps:
127
in example aboveCurrent behavior
TreeItem2IconContainer
No changes to the style.Expected behavior
The background color of
TreeItem2IconContainer
should change to red.Context
I found that the
MuiTreeItem2-iconContainer
classname has a hash prefix, which caused the custom style not to take effect.Your environment
npx @mui/envinfo
Search keywords: style RichTreeView
The text was updated successfully, but these errors were encountered: