angular / angular/components

bug(mat-dialog): mat-dialog-content always has a scroll bar when there is a element with ripple overflowing inside

Đang mở
#20,344 10 bình luận 6 reaction 0 người được giao Xem trên GitHub
area: material/checkbox area: material/slide-toggle P3
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ả

#### Reproduction

Steps to reproduce:
put a mat-slide-toggle in a mat-dialog-content

https://stackblitz.com/edit/angular-pt8j22?file=src/app/dialog-content-example-dialog.html

**EDIT: same goes for checkboxes**

#### Expected Behavior
there should not be a scroll bar when having a mat-slide-toggle in a mat-dialog-content if the content does not exceed the max height allowed

#### Actual Behavior
mat-dialog-content always has a scroll bar when there is a mat-slide-toggle inside it

#### Environment

- Angular: 10
- CDK/Material: 10
- 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 với bản tái hiện StackBlitz được liên kết, cụ thể là src/app/dialog-content-example-dialog.html, và chạy dialog chứa một mat-slide-toggle hoặc checkbox. So sánh mat-dialog-content khi có và không có phần tử ripple bị tràn; hoàn tất khi dialog không có thanh cuộn trong trường hợp nội dung nằm trong chiều cao cho phép.

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