Skip to content

Commit bf80a67

Browse files
committed
fix(calendar): center the calendar values using flex
1 parent be77783 commit bf80a67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/igniteui-angular/src/lib/core/styles/components/calendar/_calendar-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,12 @@
645645

646646
%cal-value-content {
647647
position: relative;
648+
display: inline-flex;
649+
justify-content: center;
650+
align-items: center;
648651
width: $cal-value-w;
649652
height: $cal-value-h;
650653
min-width: 2ch;
651-
line-height: $cal-value-h;
652-
text-align: center;
653654
border-radius: --var($theme, 'date-border-radius');
654655
z-index: 0;
655656
// transition: background .15s ease-out;
@@ -944,7 +945,6 @@
944945

945946
%cal-header-date {
946947
@include igx-type-style($type-scale, $header-date) {
947-
line-height: rem(42px);
948948
margin: 0;
949949
}
950950
}

0 commit comments

Comments
 (0)