angular / angular/components

bug(form-field): mat-form-field text overlap with suffix icon

Aperta
#31,108 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P4
Lingua principale
TypeScript
Stelle
25k
Fork
6.8k
Merge medio
1g 8h
PR unite (30g)
91

Descrizione

### 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

when having mat-form-field with long label text the text overlap with suffix icon

### Reproduction

StackBlitz link: [https://stackblitz.com/edit/sktdb4nx-laqmu1py?file=src%2Fexample%2Fform-field-appearance-example.html](https://stackblitz.com/edit/sktdb4nx-laqmu1py?file=src%2Fexample%2Fform-field-appearance-example.html)
Steps to reproduce:
1. just put a long text on a mat-form-field with suffix icon

### Expected Behavior

no overlap with long text

### Actual Behavior

![Image](https://github.com/user-attachments/assets/66ac2d5e-3aba-464e-ab13-129f0245a903)

the text overlaps with the icon

### Environment

- Angular: 19.2.15
- CDK/Material: 19.2.15
- Browser(s): chrome
- Operating System (e.g. Windows, macOS, Ubuntu): windows

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal punto di ingresso StackBlitz collegato, src/example/form-field-appearance-example.html, e riproduci la sovrapposizione in Chrome usando un’etichetta mat-form-field lunga con un’icona di suffisso. Traccia il comportamento correlato di Angular Material form-field e verifica che il testo lungo non si sovrapponga più all’icona.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, typescript
Ambito
frontend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.