angular / angular/components

bug(form-field): difficult to customize shape with tokens

Aperta
#31,059 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
P3
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

19

### Description

When using mat-form-field in filled appearance, I want to shape the border-radius. I use this token
--mdc-filled-text-field-container-shape: 4px !important;
But it only applies to the top corners and not the bottom corners because this token uses the wrong container to set radius. It sets the radius on a level where the div for hints and errors is also included.
And by that the bottom corners are not set with that token

### Reproduction

StackBlitz link:
Steps to reproduce:
1.
2.

### Expected Behavior

Apply radius also to bottom corners

### Actual Behavior

not applying radius to bottom corners

### Environment

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia esaminando l’aspetto filled di Angular Material mat-form-field e il modo in cui viene applicato --mdc-filled-text-field-container-shape. Riproduci lo stile segnalato con Angular 19, quindi traccia quale container possiede gli angoli inferiori; il lavoro è completato quando il token applica in modo coerente il raggio richiesto a tutti gli angoli, anche quando sono presenti suggerimenti o errori.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.