angular / angular/components

bug(FORM-FIELD): Container shape is incorrectly applied for both outlined and filled.

オープン
#30,850 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: material/form-field P4
主要言語
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

_No response_

### Description

- Filled container shape only applies to the top half of the container.
- Outline container shape incorrectly uses the shape dimensions as the padding causing very wide fields.

### Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-starter-sd5v83bx?file=package.json
Steps to reproduce:
1. Override form-field-overrides with "filled-container-shape: var(--mat-sys-corner-full),"
2. Override form-field-overrides with "outlined-container-shape: var(--mat-sys-corner-full),"

### Expected Behavior

The form-fields should be a rectangular with fully rounded corners.

### Actual Behavior

Filled form-fields are only rounding the top half.
Outlined form-fields are become 18000px wide

### Environment

- Angular: 19.2.6
- CDK/Material: 19.2.9
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Mac

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

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

調査の方向性

提供された StackBlitz の再現と、filled フィールドおよび outlined フィールド用の form-field-overrides 設定から始めます。指定された Angular と Material のバージョンで動作を確認し、そのうえで、outlined フィールドの幅が過度に広くならず、両方のバリエーションの角が完全に丸みを帯びた長方形になっていることを確認します。

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

評価

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

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

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