bug(mat-form-field): suffix element style should reflect input disabled state
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
### Reproduction
[Open this StackBlitz](https://stackblitz.com/edit/components-issue-8gvvrn?file=src/app/example-component.html) and toggle the Disabled state with the checkbox.
### Expected Behavior
Per [the Text Field spec](https://material.io/components/text-fields#outlined-text-field), under "Outlined text field with suffix text", a suffix in a disabled text field should use the same font (weight / color / opacity) as the wrapped input element.

(In the image from the spec, "55" is the input text and "/100" is the suffix.)
### Actual Behavior
The input text is light gray, to indicate that the input is disabled, but the suffix styling does not change, so it doesn't match the input text.
### Environment
- Angular: 11.1
- CDK/Material: 11.1
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
### Note
I also see that in all the suffix examples where the input is *not* disabled, the suffix is styled slightly lighter than the input text. As you can see in the StackBlitz, the default suffix is exactly the same as the input text. The spec doesn't explicitly require this, as far as I can see, so maybe it's just a suggestion?
Guía de contribución
Línea de trabajo
Usa la reproducción vinculada de StackBlitz, comenzando por src/app/example-component.html, y alterna la casilla de verificación para comparar el input deshabilitado y el sufijo. Traza el estilo del sufijo de mat-form-field y verifica que el sufijo coincida con el peso de fuente, el color y la opacidad del input deshabilitado, manteniendo al mismo tiempo el comportamiento cuando no está deshabilitado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100