mui / mui/material-ui

[LinearProgress] `color="action.disabled"` is crashing

Open
#32,270 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component: LinearProgress has workaround scope: progress type: new feature waiting for 👍
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

<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>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the LinearProgress color handling and compare its treatment of action.disabled with Typography and the working sx workaround shown in the report. Reproduce the crash with the provided JSX, then verify that color="action.disabled" renders without breaking the existing primary, primary.dark, and inherit cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.