bug(mat-checkbox): Wrong appearance when inside a disabled fieldset
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
### 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et comparez le comportement de la case à cocher à l’intérieur et à l’extérieur d’un fieldset désactivé dans Chrome, Firefox et Edge. Le travail est terminé lorsque la case cochée a un arrière-plan gris, que le texte est gris clair et que la case à cocher ne peut pas changer d’état lorsque son fieldset est désactivé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100