Skip to content

Conversation

@ZeeshanTamboli
Copy link
Member

@ZeeshanTamboli ZeeshanTamboli commented Dec 23, 2025

The --AppBar-color was defined but not used when color="inherit". Use it when color="inherit", where it will inherit the color of the Paper component.

It was not used because below it is explicitly skipping inherit, so color was not applied:

props.enableColorOnDark === true && !['inherit', 'transparent'].includes(props.color)
props.enableColorOnDark === false && !['inherit', 'transparent'].includes(props.color)

@ZeeshanTamboli ZeeshanTamboli added the scope: app bar Changes related to the app bar. label Dec 23, 2025
@mui-bot
Copy link

mui-bot commented Dec 23, 2025

Netlify deploy preview

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

Bundle size report

Bundle Parsed size Gzip size
@mui/material 🔺+28B(+0.01%) ▼-1B(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 576647b

@ZeeshanTamboli ZeeshanTamboli changed the title [appbar] Fix inherit color [appbar] Fix inherit color CSS variable not getting applied Dec 23, 2025
@ZeeshanTamboli ZeeshanTamboli marked this pull request as ready for review December 23, 2025 13:11
@ZeeshanTamboli ZeeshanTamboli added the type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. label Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: app bar Changes related to the app bar. 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.

2 participants