angular / angular/components

bug(mat-hint & mat-error): Font scaling breaks layout of mat-hint and validation messages

Aperta
#31,368 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Accessibility area: material/form-field 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 font scaling is increased (e.g. via browser/system settings), `mat-hint` and validation messages (`mat-error`) for input fields overflow into the next content block, breaking layout and readability.

Image

### Reproduction

StackBlitz link: https://stackblitz.com/edit/vjrf1ddz?file=src%2Fexample%2Fform-field-appearance-example.html
Steps to reproduce:
1. Increase font size in browser settings to very big.
2. Observe how hint and error messages overlap or push into adjacent content.

### Expected Behavior

- Hint and error messages should remain visually associated with their input fields.
- Layout should adapt to font scaling without breaking structure.

### Actual Behavior

- Text overflows or overlaps with unrelated content.
- Layout becomes confusing or unreadable.

### Environment

- Angular: 20.0.3
- CDK/Material: 20.0.3
- Browser(s): Microsoft Edge, Google Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con la riproduzione StackBlitz in src/example/form-field-appearance-example.html e riproduci il problema usando una dimensione dei caratteri del browser molto grande in Chrome o Edge. Traccia il layout di mat-hint e mat-error intorno ai campi di input; il lavoro è completato quando il loro testo rimane associato ai campi senza sovrapporsi al contenuto adiacente o diventare illeggibile.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.