Skip to content

Commit

Permalink
fix(material/datepicker): set explicit line height on calendar (#29770)
Browse files Browse the repository at this point in the history
Sets a `line-height` on the calendar, otherwise it inherits the one from the `body` which can throw off the layout.

Fixes #29756.
  • Loading branch information
crisbeto authored Sep 24, 2024
1 parent 2857b73 commit 49af49b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/material/datepicker/calendar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ $_tokens: tokens-mat-datepicker.$prefix, tokens-mat-datepicker.get-token-slots()
.mat-calendar {
display: block;

// Prevents layout issues if the line height bleeds in from the body (see #29756).
line-height: normal;

@include token-utils.use-tokens($_tokens...) {
@include token-utils.create-token-slot(font-family, calendar-text-font);
@include token-utils.create-token-slot(font-size, calendar-text-size);
Expand Down

0 comments on commit 49af49b

Please sign in to comment.