-
-
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
[data grid] .MuiDataGrid-columnHeader:
first-of-type doesn't work in v7
#12783
Comments
.MuiDataGrid-columnHeader:
first-of-type doesn't work in v7
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷. A live example would be perfect. You can find a examples and guides on how to find templates in our docs with which you can provide examples for your specific use-case: Support - Bug reproduction. Thank you! 🙇🏼 |
i want to know if this element has some else function? |
The I am not sure if this will be possible due to the DOM structure we have. With the presentation div present which prevents any selection based on classes in combination with @romgrk any idea how we could make this happen? |
The element creates the virtual offset spacing. I don't think using |
but also how i can get the :last-of-type, because i want to set paddingLeft/paddingRight to fit my components @romgrk |
At the moment you would use |
onColumnVisibilityModelChange={(newVisibilityModel) => {
console.log(apiRef.current?.getVisibleColumns());
}} Or you can rely on the Ojections @romgrk ? |
That or |
Needed the selector for another bug, I've added |
@WhiteWolf-js: 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. |
Steps to reproduce
Link to live example: (required)
Steps:
this is a example:
https://codesandbox.io/p/sandbox/flamboyant-leakey-fh6645?file=%2Fsrc%2FDemo.tsx @michelengelen here is my example
Current behavior
cannot effect &:first-of-type css styles
Expected behavior
because in v7 ,here changes some doms structure, It has greatly affected
Context
No response
Your environment
npx @mui/envinfo
Search keywords: first-of-type
Search keywords:
The text was updated successfully, but these errors were encountered: