Skip to content

bug(mat-checkbox): Wrong appearance when inside a disabled fieldset #27223

@coder925

Description

@coder925

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The material checkbox is not styled correctly when inside a disabled fieldset.

The appearance should be the same as when outside a fieldset:
image

Reproduction

StackBlitz link:
Steps to reproduce:

  1. https://stackblitz.com/edit/components-issue-penyki

Expected Behavior

  1. When checked, a grey background within the tick box
  2. The font color is light gray
  3. Not clickable (disabled)

Actual Behavior

  1. When checked, no background within the tick box
  2. The font color is black
  3. Clickable. Possible to change checked state.

Environment

  • Angular: 16.0.0
  • CDK/Material: 16.0.3
  • Browser(s): Chrome, Firefox, Edge
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/checkbox

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions