bug(mat-button, mat-icon): mat-icon inside of mat-button are truncated
- 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?
- [x] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
Not sure which
### Description
Using Angular 19 with angular material, if I put a `mat-icon` element inside of a `mat-button`, the icon is not completely visible. It is truncated a little at its top and bottom. See reproduction StackBlitz below.
### Reproduction
Forked the "Button Angular Component" example to display the problem.
Editor: https://stackblitz.com/edit/3zsvfedr?file=src%2Fexample%2Fbutton-overview-example.html
Application: https://3zsvfedr.stackblitz.io
See the second button in the "Basic" "Raised" "Stroke" and "Flat" table rows.
### Expected Behavior
I would expect the icon to be fully visible, not truncated. In case of the `add_circle` icon, I would expect its shape to be perfectly round.
### Actual Behavior
The top and bottom of the icon are truncated (cropped) which makes it painfully _not round_.

### Environment
- Angular: 19
- CDK/Material: 19.2.7
- Browser(s): Edge, Chrome and Firefox
- Operating System: Windows
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz y compara los segundos botones de los ejemplos Basic, Raised, Stroke y Flat. Rastrea el renderizado y el estilo de Angular Material mat-button y mat-icon implicados en el recorte. Se considera terminado cuando el icono sea completamente visible y el icono add_circle aparezca redondo en los navegadores indicados.
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
- 45/100