Skip to content

Selected radio buttons are still colored even when disabled #43588

@crnhrv

Description

@crnhrv

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

Metadata

Metadata

Assignees

Labels

scope: radioChanges related to the radio.type: regressionA bug, but worse, it used to behave as expected.v6.x

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions