-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[data grid] Tweak GridRootStyles to allow CSS variables (and joy-ui!) #6083
Comments
Anyone wanting to use
|
Thanks for expressing interest in using the DataGrid with Joy. We're aware of this problem and we need to discuss yet how to support it properly. |
Great workaround @adammanderson. |
For the Material UI's CSS Theme Variables - it works with the DataGrid: https://codesandbox.io/s/floral-wind-nok8wk?file=/demo.tsx |
We might consider using CSS filters instead of |
Hi, |
Hi, |
Current behavior 😯
Error:
Uncaught Error: MUI: Unsupported 'var(--joy-palette-neutral-800)' color. The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
Cause:
const borderColor = theme.palette.mode === 'light' ? lighten(alpha(theme.palette.divider, 1), 0.88) : darken(alpha(theme.palette.divider, 1), 0.68);
Expected behavior 🤔
MuiDataGrid should support CSS variables.
Steps to reproduce 🕹
theme.palette.divider
as a CSS variable.GridRootStyles
explode.Context 🔦
It would be great to get MuiDataGrid working with joy-ui and/or custom css variables.
Your environment 🌎
No response
Order ID 💳 (optional)
No response
The text was updated successfully, but these errors were encountered: