-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[data grid] icon must inherit fontSize from baseIconButton #12900
Copy link
Copy link
Open
Labels
good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.scope: data gridChanges related to the data grid.Changes related to the data grid.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Metadata
Metadata
Assignees
Labels
good first issueGreat for first contributions. Enable to learn the contribution process.Great for first contributions. Enable to learn the contribution process.scope: data gridChanges related to the data grid.Changes related to the data grid.type: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.
Summary
Currently I'm unable to override fontSize of icon in GridActionsCellItem IconButton
https://github.com/mui/mui-x/blob/master/packages/x-data-grid/src/components/cell/GridActionsCellItem.tsx#L50
Here hardcoded always small
baseIconButton size can be overwritten easy through props or slotProps, but not icon itself
So I'd like to inherit fontSize from button (if look suitable for most of cases)
Or any ability to customize fontSize instead of having hardcoded one
Examples
No response
Motivation
No response
Search keywords: data grid, icon, baseIconButton