bug(mat-checkbox): Wrong appearance when inside a disabled fieldset
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset).
The appearance should be the same as when outside a fieldset:

### 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
Beitragsleitfaden
Rechercherichtung
Beginne mit der verlinkten StackBlitz-Reproduktion und vergleiche das Verhalten der Checkbox innerhalb und außerhalb eines deaktivierten fieldset in Chrome, Firefox und Edge. Als erledigt gilt, wenn die aktivierte Checkbox einen grauen Hintergrund hat, der Text hellgrau ist und die Checkbox ihren Zustand nicht ändern kann, wenn ihr fieldset deaktiviert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100