Skip to content
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

Merged
merged 4 commits into from Jan 26, 2022

Conversation

alexfauquette
Copy link
Member

@alexfauquette alexfauquette commented Jan 25, 2022

@mui-bot
Copy link

mui-bot commented Jan 25, 2022

These are the results for the performance tests:

Test case Unit Min Max Median Mean σ
Filter 100k rows ms 163.5 328.5 201.2 239.9 67.953
Sort 100k rows ms 484.9 811.3 711.3 684.86 108.261
Select 100k rows ms 148.8 275.5 202.7 206.14 40.519
Deselect 100k rows ms 121.4 232.4 193.9 188.36 36.553

Generated by 🚫 dangerJS against 7c0d422

@alexfauquette alexfauquette changed the title [DataGridPro] Fix missing styleOverrides` on pinned columns [DataGridPro] Fix missing styleOverrides on pinned columns Jan 25, 2022
@@ -389,6 +389,9 @@ export const gridClasses = generateUtilityClasses('MuiDataGrid', [
'pinnedColumns',
'pinnedColumns--left',
'pinnedColumns--right',
'pinnedColumnHeaders',
Copy link
Member

@m4theushw m4theushw Jan 25, 2022

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.

Copy link
Member Author

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'

Copy link
Member

@m4theushw m4theushw Jan 26, 2022

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

@oliviertassinari oliviertassinari added the component: data grid This is the name of the generic UI component, not the React module! label Jan 25, 2022
@alexfauquette alexfauquette self-assigned this Jan 26, 2022
Copy link
Member

@m4theushw m4theushw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working.

@alexfauquette alexfauquette merged commit 9bd964e into mui:master Jan 26, 2022
@alexfauquette alexfauquette deleted the fix-3716 branch January 26, 2022 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class pinnedColumns can't be overwritten
4 participants