Skip to content

Commit bef8afa

Browse files
authored
[material-ui][LinearProgress] Fix background color (#43949)
1 parent 90f0ce2 commit bef8afa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/mui-material/src/LinearProgress/LinearProgress.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,13 @@ const LinearProgressBar2 = styled('span', {
338338
backgroundColor: 'var(--LinearProgressBar2-barColor, currentColor)',
339339
},
340340
},
341+
{
342+
props: ({ ownerState }) =>
343+
ownerState.variant !== 'buffer' && ownerState.color === 'inherit',
344+
style: {
345+
backgroundColor: 'currentColor',
346+
},
347+
},
341348
{
342349
props: {
343350
color: 'inherit',

0 commit comments

Comments
 (0)