angular / angular/components

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

オープン
#31,059 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
P3
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Angular Material mat-form-field の filled appearance と、--mdc-filled-text-field-container-shape がどのように適用されるかを調べます。Angular 19 で報告されたスタイルを再現し、その後、下隅を所有しているコンテナを追跡します。完了の条件は、ヒントやエラーが存在する場合も含め、トークンが要求された半径をすべての隅に一貫して適用することです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, css, typescript
領域
design, frontend
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。