Skip to content

[data grid] Inherit icon fontSize from baseIconButton size#22187

Open
imxv wants to merge 2 commits intomui:masterfrom
imxv:fix/grid-actions-cell-item-inherit-font-size
Open

[data grid] Inherit icon fontSize from baseIconButton size#22187
imxv wants to merge 2 commits intomui:masterfrom
imxv:fix/grid-actions-cell-item-inherit-font-size

Conversation

@imxv
Copy link
Copy Markdown

@imxv imxv commented Apr 24, 2026

Closes #12900

Changelog

<GridActionsCellItem> previously hardcoded fontSize="small" on its icon, so
passing size="large" produced a large button with a small icon. The icon now
uses fontSize="inherit", letting it scale with the enclosing IconButton
size — the fix suggested by @michelengelen in #12900.

cc @michelengelen

@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented Apr 24, 2026

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 🔺+2B(0.00%) ▼-1B(0.00%)
@mui/x-data-grid-pro 🔺+2B(0.00%) ▼-1B(0.00%)
@mui/x-data-grid-premium 🔺+2B(0.00%) ▼-1B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Deploy preview

https://deploy-preview-22187--material-ui-x.netlify.app/


Check out the code infra dashboard for more information about this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[data grid] icon must inherit fontSize from baseIconButton

1 participant