Skip to content

Commit da0df79

Browse files
committed
fix(calendar) move the repeated code to the base file
1 parent bb01251 commit da0df79

File tree

4 files changed

+2
-21
lines changed

4 files changed

+2
-21
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 & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,6 @@ $theme: $bootstrap;
5151
}
5252
}
5353

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

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

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

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

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

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

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

0 commit comments

Comments
 (0)