bug(mat-dialog): mat-dialog-content always has a scroll bar when there is a element with ripple overflowing inside
- Vorherrschende Sprache
- TypeScript
- Sterne
- 25k
- Forks
- 6.8k
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 91
Beschreibung
#### 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
Beitragsleitfaden
Rechercherichtung
Beginne mit der verknüpften StackBlitz-Reproduktion, insbesondere mit src/app/dialog-content-example-dialog.html, und führe den Dialog mit einem mat-slide-toggle oder einer Checkbox aus. Vergleiche mat-dialog-content mit und ohne das überlaufende Ripple-Element; fertig ist es, wenn der Dialog keinen Scrollbalken hat, solange sein Inhalt innerhalb der zulässigen Höhe bleibt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100