angular / angular/components

bug(COMPONENT): Inconsistency in behavior of a[mat-button] and a[mat-menu-item] when disabled

オープン
#30,203 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
Accessibility area: material/menu 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

This may be a feature request.

When a[mat-button] is disabled, if you right-click it, the menu will be the normal one, but if you right-click a[mat-menu-item], the options for clicking a link will be displayed, and you can actually navigate to the page.

### Reproduction

https://github.com/reuse-ay/angular-mat-a.git

### Expected Behavior

When a[mat-menu-item] is disabled, I don’t want the option for the link to be displayed.

### Actual Behavior

option for the link to be displayed.

### Environment

- Angular:19
- CDK/Material:19
- Browser(s):chrome
- Operating System (e.g. Windows, macOS, Ubuntu):windows

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

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

調査の方向性

まず、Windows 上の Chrome を使用して、リンクされた angular-mat-a リポジトリでの動作を再現し、無効化された a[mat-button] と a[mat-menu-item] を比較します。Angular Material の menu-item と button の動作を追跡します。無効化された mat-menu-item がリンクオプションを公開せず、ナビゲーションも許可しなくなり、無効化されたボタンの動作と一致すれば完了です。

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

評価

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

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

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