bug(mat-button): mat-button should be changed to disabled appearance when the parent `<fieldset>` is disabled
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### 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 same issue #3033 was closed by angular/angular#35309. But it only fixes form controls not buttons.
The CSS selector for disabled appearance only selects `[disabled]` but it should also select `:disabled` to make the parent `` work.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-ck6fmjkd
Steps to reproduce:
1. Put both `mat-button` and **disabled**-`mat-button` in ``.
### Expected Behavior
Both `mat-button` should show the same appearance.
### Actual Behavior
They are different.
### Environment
- Angular: 20.0.6
- CDK/Material: 20.0.5
- Browser(s): Google Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guía de contribución
Línea de trabajo
Comienza con los estilos de apariencia deshabilitada de mat-button y el selector CSS que actualmente solo comprueba [disabled]. Reproduce el problema usando el StackBlitz enlazado con botones dentro de ; se considera terminado cuando ambos botones tienen la misma apariencia deshabilitada, incluido el caso del botón deshabilitado explícitamente.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, css
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Estado de actividad
- Estancado
- Claridad
- Bien especificado
- Aptitud para principiantes
- 55/100