Skip to content

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

Open
@Ploppy3

Description

@Ploppy3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions