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

[tree view] TreeItem2DragAndDropOverlay - Error: MUI: Unsupported var(--palette-primary-dark) color. #14349

Closed
mtr1990 opened this issue Aug 26, 2024 · 4 comments · Fixed by #14969
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! customization: theme Centered around the theming features

Comments

@mtr1990
Copy link

mtr1990 commented Aug 26, 2024

Steps to reproduce

use <CssVarsProvider/> for base example

https://mui.com/x/react-tree-view/rich-tree-view/ordering/#only-trigger-the-reordering-from-a-drag-handle

Current behavior

xx-1

to my knowledge the alpha function will not support vars so this could be the cause of the error
xxx

https://github.com/mui/mui-x/blob/master/packages/x-tree-view/src/TreeItem2DragAndDropOverlay/TreeItem2DragAndDropOverlay.tsx

Expected behavior

No error withTreeItem2DragAndDropOverlay

Context

No response

Your environment

No response

Search keywords: TreeItem2DragAndDropOverlay

@mtr1990 mtr1990 added bug 🐛 Something doesn't work status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 26, 2024
@github-actions github-actions bot added the component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! label Aug 26, 2024
@michelengelen
Copy link
Member

Hey @mtr1990 ... I can confirm this bug and will add it to the board!
Thanks for opening it! 👍🏼

@michelengelen michelengelen changed the title [TreeView] TreeItem2DragAndDropOverlay - Error: MUI: Unsupported var(--palette-primary-dark) color. [tree view] TreeItem2DragAndDropOverlay - Error: MUI: Unsupported var(--palette-primary-dark) color. Aug 27, 2024
@michelengelen michelengelen added customization: theme Centered around the theming features and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Aug 27, 2024
@kzimins-arvatosystems
Copy link

Btw could be TreeItem2DragAndDropOverlay also exported from pro package as well?

@flaviendelangle
Copy link
Member

#14913 fixes the import issues on the pro package

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@mtr1990 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! customization: theme Centered around the theming features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@flaviendelangle @mtr1990 @michelengelen @kzimins-arvatosystems and others