Skip to content

[material-ui] Clean up duplicated CSS rules (@sai6855)#47893

Merged
sai6855 merged 2 commits into
v7.xfrom
cherry-pick-47838-to-v7.x
Mar 4, 2026
Merged

[material-ui] Clean up duplicated CSS rules (@sai6855)#47893
sai6855 merged 2 commits into
v7.xfrom
cherry-pick-47838-to-v7.x

Conversation

@github-actions

@github-actions github-actions Bot commented Mar 3, 2026

Copy link
Copy Markdown

Cherry-pick of #47838

@github-actions github-actions Bot added cherry-pick The PR was cherry-picked from the newer alpha/beta/stable branch. scope: system The system, the design tokens / styling foundations used across components. eg. @mui/system with MUI type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Mar 3, 2026
@github-actions github-actions Bot requested review from sai6855 and siriwatknp March 3, 2026 07:57
@mui-bot

mui-bot commented Mar 3, 2026

Copy link
Copy Markdown

Netlify deploy preview

https://deploy-preview-47893--material-ui.netlify.app/

Bundle size report

Bundle Parsed size Gzip size
@mui/material ▼-186B(-0.04%) ▼-3B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 7923e8e

@ZeeshanTamboli

Copy link
Copy Markdown
Member

@sai6855 Can you review and merge? Let's not keep cherry-pick PRs open.

@sai6855 sai6855 merged commit 67acb51 into v7.x Mar 4, 2026
22 checks passed
@sai6855 sai6855 deleted the cherry-pick-47838-to-v7.x branch March 4, 2026 10:16
[`.${typographyClasses.root}:where(& .${cardHeaderClasses.subheader})`]: {
display: 'block',
},
[`.${typographyClasses.root}:where(& .${cardHeaderClasses.title}), .${typographyClasses.root}:where(& .${cardHeaderClasses.subheader})`]:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This appears causing inheritance issues for us on a Typography variant.

.css-1uwokas-MuiCardHeader-content .MuiTypography-root:where(& .MuiCardHeader-title), .css-1uwokas-MuiCardHeader-content .MuiTypography-root:where(& .MuiCardHeader-subheader) {
    display: block;
}

overrides

.css-1dhc8ja-MuiTypography-root {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This part of code was partially reverted in #47938, but for other reasons. See #47926. The partial revert will be available in the next v7 release.

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

Labels

cherry-pick The PR was cherry-picked from the newer alpha/beta/stable branch. scope: system The system, the design tokens / styling foundations used across components. eg. @mui/system with MUI type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants