mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.05k stars 1.25k forks source link

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

Open mtr1990 opened 2 weeks ago

mtr1990 commented 2 weeks ago

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

michelengelen commented 2 weeks ago

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