bug(FabButton): `matFab` shows hover and focus styling with `disabledInteractive`
- 主要言語
- 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 `matFab` button behaves differently from `matButton` with the `disabledInteractive` property. When hovering or clicking the FAB button, it will animate the box shadow such that it looks interactive even if its not.
https://github.com/user-attachments/assets/e71708ff-e0f7-4ce1-944b-fcfa41a9645b
https://github.com/user-attachments/assets/b268dea9-627b-435f-8898-e427b0b379e7
### Reproduction
StackBlitz link: https://stackblitz.com/edit/rfnrrfrf?file=src%2Fexample%2Fbutton-disabled-interactive-example.css
Steps to reproduce:
1. Create a `matFab` with `disabled` + `disabledInteractive`
2. Hover the button
3. Click the button
### Expected Behavior
1. No hover box-shadow changes
2. No mousedown changes
### Actual Behavior
1. Hover will "raise" the button (increase box-shadow)
2. Clicking the button animates it
### Environment
- Angular: 20.2.9
- CDK/Material: 20.2.2
- Browser(s): Chrome/Edge (probably all)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
コントリビューションガイド
調査の方向性
リンクされた StackBlitz の再現例、特に src/example/button-disabled-interactive-example.css から始め、disabledInteractive が設定されている場合の matFab と matButton を比較します。hover と mousedown によって無効化された FAB のボックスシャドウが変更されなくなったことを確認し、その後、再現例で両方の動作を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100