Skip to content

Commit 13aa359

Browse files
authored
fix(material/datepicker): remove scroll bar while animating in touch UI mode (#21493)
The screen reader close button is rendered outside the dialog which seems to cause a scrollbar to be shown while the animation is running. These changes fix the issue by hiding the button while the dialog is animating.
1 parent e608da3 commit 13aa359

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/material/datepicker/datepicker-content.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ $mat-datepicker-touch-max-height: 788px;
3838
top: 100%;
3939
left: 0;
4040
margin-top: 8px;
41+
42+
// Hide the button while the overlay is animating, because it's rendered
43+
// outside of it and it seems to cause scrollbars in some cases (see #21493).
44+
.ng-animating & {
45+
display: none;
46+
}
4147
}
4248
}
4349

0 commit comments

Comments
 (0)