bug(DIALOG): dialog's container-color does not follow Material 3 design specs
- 主要言語
- 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
As per [Material 3 guidelines](https://m3.material.io/components/dialogs/specs), `container-color` should use value `surface-container-high` token, but it's using value `surface` token.
We can override it by using `dialog-overrides` mixin like below:
```scss
@include mat.dialog-overrides((
container-color: var(--mat-sys-surface-container-high),
));
```
But, it should be the default behaviour as per Material 3 specs.
### Reproduction
Not needed
### Expected Behavior
As per [Material 3 guidelines](https://m3.material.io/components/dialogs/specs), `container-color` should use value `surface-container-high` token.
### Actual Behavior
Dialog's `container-color` is using value `surface` token.
### Environment
- Angular: 19
- CDK/Material: 19
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
コントリビューションガイド
調査の方向性
ファイルやテストは指定されていません。Angular Material のダイアログのテーマ実装と既存のテストを見つけ、コンテナーカラーのトークンをリンク先の Material 3 ダイアログ仕様と比較してください。デフォルトのトークンが surface-container-high を使用し、関連するテストカバレッジがパスすれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- design, frontend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 64/100