angular / angular/components

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

Đang mở
#30,203 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Accessibility area: material/menu P4
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

### 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện hành vi trong repository angular-mat-a được liên kết bằng Chrome trên Windows, so sánh a[mat-button] và a[mat-menu-item] bị vô hiệu hóa. Theo dõi hành vi của menu-item và button trong Angular Material; hoàn tất khi một mat-menu-item bị vô hiệu hóa không còn hiển thị các tùy chọn liên kết hoặc cho phép điều hướng, phù hợp với hành vi của nút bị vô hiệu hóa.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
45/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.