[LinearProgress] `color="action.disabled"` is crashing
See original GitHub issue<LinearProgress color="primary" />
works.
<LinearProgress color="action.disabled" />
does not work (crash)
<LinearProgress color="inherit" sx={{ color: "action.disabled" }} />
works as expected (workaround)
For example, These things work as expected:
<Typography color="action.disabled">qwe</Typography>
<Typography color="primary">qwe</Typography>
<Typography color="primary.dark">qwe</Typography>
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
youtube-danmaku - Codul sursă - Greasy Fork
eslint-enable prefer-template */ } /* eslint-disable no-use-before-define ... error but do we really // want to crash if focus-visible malfunctioned?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s to be notted that in these two examples:
the color does not behave the same way. The color logic is vastly different, so I’m not sure that supporting:
would be a step forward. Maybe the root problem is that we call the prop
color
. maybe if it was called differently, like:then it would be clear.
I would advice make two new props:
paletteColor
where one can specify “primary”, “secondary”, “warning”, and so on.explicitColor
where one can set values like “action.disabled”.color
prop.