From bef8afab7e88f0617e38dc40be940f426b0361a3 Mon Sep 17 00:00:00 2001 From: sai chand <60743144+sai6855@users.noreply.github.com> Date: Tue, 1 Oct 2024 15:15:33 +0530 Subject: [PATCH] [material-ui][LinearProgress] Fix background color (#43949) --- packages/mui-material/src/LinearProgress/LinearProgress.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/mui-material/src/LinearProgress/LinearProgress.js b/packages/mui-material/src/LinearProgress/LinearProgress.js index f5e77d32b6b850..9046d1e69dbe38 100644 --- a/packages/mui-material/src/LinearProgress/LinearProgress.js +++ b/packages/mui-material/src/LinearProgress/LinearProgress.js @@ -338,6 +338,13 @@ const LinearProgressBar2 = styled('span', { backgroundColor: 'var(--LinearProgressBar2-barColor, currentColor)', }, }, + { + props: ({ ownerState }) => + ownerState.variant !== 'buffer' && ownerState.color === 'inherit', + style: { + backgroundColor: 'currentColor', + }, + }, { props: { color: 'inherit',