angular / angular/components

Label for mat-form-field is overlapping with mat-icon in mat-tab.

Abierto
#26,428 24 comentarios 28 reacciones 0 asignados Ver en GitHub
area: many area: material/tabs P4
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

14

### Description

Label is overlapping with icon.

- When using in 2nd Tab of Tabgroup, surrounded with a e.g. a div, p, ...
- and
- When using the the mat-form-field with appearance "outline" and an icon with matPrefix.

```



Outline form field

sentiment_very_satisfied
Hint


```

### Reproduction

Steps to reproduce:
1. add to app.module
import { MatInputModule } from '@angular/material/input';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatTabsModule } from '@angular/material/tabs';

2. add to app.component
```




Outline form field

sentiment_very_satisfied
Hint






Outline form field

sentiment_very_satisfied
Hint



#
```
3.
for the input field in 2nd tab : label is overlapping with mat-icon
4.
when inspecting the style, it seems the X transform is not correct

![tabs](https://user-images.githubusercontent.com/8170828/212326383-c7770735-0201-459b-bcc6-1489abcefdaa.png)

### Expected Behavior

Label should have correct margin

### Actual Behavior

Label is overlapping with mat-icon

### Environment

- Angular:15.0.0
- CDK/Material:15.1.0
- Browser(s):Chrome, Edge
- Operating System (e.g. Windows, macOS, Ubuntu):Windows 10

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo el ejemplo proporcionado de Angular Material con un outlined mat-form-field, un icono matPrefix y el segundo mat-tab; después, inspecciona los estilos de transformación de label indicados en el informe. Se considera terminado cuando el label tiene el margen correcto y ya no se superpone al mat-icon en el segundo tab, manteniendo el comportamiento del primer tab.

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
Bien especificado
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.