-
-
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] styling disappears on pinned columns in v7.0.0-beta.5 #12313
Comments
Hey @rajat-brunel could you please make the sandbox public? It seems to be private. |
Hi @michelengelen sorry yea, it's public now. Here is the link : https://codesandbox.io/p/sandbox/inspiring-shadow-cprc2c?file=%2Fsrc%2FDemo.js%3A20%2C36 |
Hey @rajat-brunel ... I have fiddled around a bit with our striped row example myself and here is what I came up with: striped rows with pinned columns The change I did was simply targeting the cell classes and not the rows. One thing though: There is still some leftover background on the pinned cells when hovering a row. This is due to a change in @romgrk the pinned columns cannot be styled anymore. This seems like a little regression. Could you check that please? |
@michelengelen this link opens up the same code sandbox that's on the original post, Can you please post the one that you had changed ? Thank you. |
Here is a simplified example covering the default/hover cases, you can add the selected case following this model: https://codesandbox.io/p/sandbox/proud-rain-82w9pr?file=%2Fsrc%2FDemo.js%3A169%2C1 You need to set the background on the cells, not the rows. You also can't use transparent pinned cells, because there is content behind them. If you want a specific color, you need to blend it yourself or use color-mix(). |
Ah okay, I see, I will set the colours on the cells not the row. |
I am sry ... I did miss the notification for this. Thanks @romgrk for providing a solution ... mine was basically the same! :D Great to see that we could be of help @rajat-brunel |
How did we do @rajat-brunel? |
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/inspiring-shadow-cprc2c?file=%2Fsrc%2FDemo.js%3A20%2C36
Steps:
Current behavior
The styling for a row or a cell is disappearing if that specific column is pinned.
Expected behavior
The styling for a row or a cell should still be applied if that specific column is pinned.
Context
No response
Your environment
npx @mui/envinfo
Search keywords: component: data grid feature: column pinning
Order ID: 79393
The text was updated successfully, but these errors were encountered: