angular / angular/components

bug(mat-button): mat-button should be changed to disabled appearance when the parent `<fieldset>` is disabled

オープン
#31,500 コメント 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

_No response_

### Description

The same issue #3033 was closed by angular/angular#35309. But it only fixes form controls not buttons.

The CSS selector for disabled appearance only selects `[disabled]` but it should also select `:disabled` to make the parent `` work.

### Reproduction

StackBlitz link: https://stackblitz.com/edit/components-issue-starter-ck6fmjkd
Steps to reproduce:
1. Put both `mat-button` and **disabled**-`mat-button` in ``.

### Expected Behavior

Both `mat-button` should show the same appearance.

### Actual Behavior

They are different.

### Environment

- Angular: 20.0.6
- CDK/Material: 20.0.5
- Browser(s): Google Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows

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

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

調査の方向性

mat-button の無効状態の外観スタイルと、現在 [disabled] のみをチェックしている CSS セレクターから始めます。 内にボタンを配置した、リンク先の StackBlitz を使って問題を再現します。両方のボタンが同じ無効状態の外観になり、明示的に無効化されたボタンの場合も含まれることが完了条件です。

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

評価

技術スタック
angular, css
領域
frontend
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

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

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