bug(form-field): difficult to customize shape with tokens
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
### 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
Beitragsleitfaden
Rechercherichtung
Beginne damit, die gefüllte Darstellung von Angular Material mat-form-field und die Anwendung von --mdc-filled-text-field-container-shape zu untersuchen. Reproduziere das gemeldete Styling mit Angular 19 und verfolge anschließend, welcher Container die unteren Ecken besitzt; abgeschlossen ist die Untersuchung, wenn das Token den angeforderten Radius konsistent auf alle Ecken anwendet, auch wenn Hinweise oder Fehler vorhanden sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, css, typescript
- Bereich
- design, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100