bug(mat-dialog): mat-dialog-content always has a scroll bar when there is a element with ripple overflowing inside
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
#### 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
贡献指南
调研方向
从链接的 StackBlitz 复现开始,具体查看 src/app/dialog-content-example-dialog.html,并运行包含 mat-slide-toggle 或复选框的对话框。比较有无溢出 ripple 元素时的 mat-dialog-content;当内容保持在允许的高度以内时,对话框没有滚动条即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100