Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selected radio buttons are still colored even when disabled #43588

Closed
crnhrv opened this issue Sep 3, 2024 · 1 comment · Fixed by #43592
Closed

Selected radio buttons are still colored even when disabled #43588

crnhrv opened this issue Sep 3, 2024 · 1 comment · Fixed by #43592
Assignees
Labels
bug 🐛 Something doesn't work component: radio This is the name of the generic UI component, not the React module! regression A bug, but worse v6.x

Comments

@crnhrv
Copy link

crnhrv commented Sep 3, 2024

Steps to reproduce

Link to live example: https://stackblitz.com/edit/react-sehce7?file=Demo.tsx

Steps:

  1. Add a RadioGroup to a FormControl
  2. Add FormControlLabel with control={<Radio disabled />}

Current behavior

The disabled selected radio button will display with primary colour:

ishare-1725369012

Expected behavior

The disabled selected radio button will be greyed out:

ishare-1725369102

Context

No response

Your environment

npx @mui/envinfo
  System:
    OS: macOS 14.6.1
  Binaries:
    Node: 22.1.0 - ~/.nvm/versions/node/v22.1.0/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v22.1.0/bin/npm
    pnpm: Not Found
  Browsers:
    Chrome: 128.0.6613.114
    Edge: 128.0.2739.54
    Safari: 17.6

Search keywords: radiogroup, radio

@crnhrv crnhrv added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Sep 3, 2024
@mnajdova mnajdova self-assigned this Sep 3, 2024
@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: radio This is the name of the generic UI component, not the React module! regression A bug, but worse v6.x and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Sep 3, 2024
Copy link

github-actions bot commented Sep 9, 2024

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

We value your feedback @crnhrv! How was your experience with our support team?
If you could spare a moment, we'd love to hear your thoughts in this brief Support Satisfaction survey. Your insights help us improve!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: radio This is the name of the generic UI component, not the React module! regression A bug, but worse v6.x
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants