-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[DataGridPro] Fix missing styleOverrides
on pinned columns
#3733
Conversation
These are the results for the performance tests:
|
styleOverrides
on pinned columns
@@ -389,6 +389,9 @@ export const gridClasses = generateUtilityClasses('MuiDataGrid', [ | |||
'pinnedColumns', | |||
'pinnedColumns--left', | |||
'pinnedColumns--right', | |||
'pinnedColumnHeaders', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You also need to add these classes to the interface in this same file. The slots docs should also be updated by this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason why we don't reuse the interface keys to generate the list of classes.
I found 3 elements in gridClasses
which are not parts of the interface, and I don't know if it is expected or not :
- 'actionsCell'
- 'groupingCriteriaCell'
- 'groupingCriteriaCellToggle'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied the same approach from MUI Core. I don't know how they check to avoid missing classes. cc @mnajdova
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working.
Fix #3716
CodeSandbox with the fix: https://codesandbox.io/s/disablecolumnpinningbuttons-material-demo-forked-se9cx?file=/demo.tsx