Skip to content

Commit 6bace83

Browse files
authored
[Calendar] - fix header size (#1629)
1 parent dc343fd commit 6bace83

File tree

6 files changed

+4
-18
lines changed

6 files changed

+4
-18
lines changed

src/components/calendar/themes/calendar.base.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@
106106
flex-direction: row;
107107

108108
[part='header'] {
109+
width: rem(168px);
110+
min-width: rem(168px);
109111
justify-content: flex-start;
110112
border-radius: inherit;
111113
border-start-end-radius: 0;

src/components/calendar/themes/shared/bootstrap/calendar.bootstrap.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ $theme: $bootstrap;
5151
}
5252
}
5353

54-
:host(igc-calendar[header-orientation='vertical']) {
55-
[part~='header'] {
56-
width: rem(168px);
57-
}
58-
}
59-
6054
[part~='header'] {
6155
background: var-get($theme, 'header-background');
6256
color: var-get($theme, 'header-foreground');

src/components/calendar/themes/shared/bootstrap/days-view.bootstrap.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $border-size: rem(1px);
2727
position: absolute;
2828
width: 100%;
2929
inset-block-start: 100%;
30+
inset-inline-start: 0;
3031
height: rem(1px);
3132
background: var-get($theme, 'border-color');
3233
}

src/components/calendar/themes/shared/fluent/calendar.fluent.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ $theme: $fluent;
3636
}
3737
}
3838

39-
:host(igc-calendar[header-orientation='vertical']) {
40-
[part~='header'] {
41-
width: rem(168px);
42-
}
43-
}
44-
4539
[part='header'] {
4640
color: var-get($theme, 'header-foreground');
4741
background: var-get($theme, 'header-background');

src/components/calendar/themes/shared/indigo/calendar.indigo.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ $theme: $indigo;
5555
:host(igc-calendar[header-orientation='vertical']) {
5656
[part~='header'] {
5757
width: rem(136px);
58+
min-width: rem(136px);
5859

5960
&::after {
6061
inset-inline-start: calc(100% - #{rem(1px)});

src/components/calendar/themes/shared/material/calendar.material.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,6 @@ $theme: $material;
4545
width: 100%;
4646
}
4747

48-
:host(igc-calendar[header-orientation='vertical']) {
49-
[part~='header'] {
50-
width: rem(168px);
51-
}
52-
}
53-
5448
[part='header'] {
5549
padding: rem(16px) rem(24px);
5650
gap: rem(28px);

0 commit comments

Comments
 (0)