Skip to content

Commit 7722a7a

Browse files
desig9steinMPopovsimeonoff
authored
fix(calendar) range selection colors (#9475)
Co-authored-by: MPopov <[email protected]> Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent b5a1742 commit 7722a7a

File tree

1 file changed

+13
-19
lines changed

1 file changed

+13
-19
lines changed

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

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,11 @@
925925
}
926926

927927
%cal-value--inactive--single--hover {
928-
color: --var($theme, 'inactive-text-color');
928+
@if $bootstrap-theme {
929+
color: --var($theme, 'date-selected-text-color');
930+
} @else {
931+
color: --var($theme, 'inactive-text-color');
932+
}
929933
}
930934

931935
%cal-value--special {
@@ -1024,35 +1028,25 @@
10241028
}
10251029

10261030
%cal-value--range%cal-value--inactive%cal-value--selected {
1027-
background: transparent !important;
1028-
10291031
%cal-value-content {
1030-
color: --var($theme, 'date-disabled-text-color');
1031-
background: transparent !important;
1032+
color: --var($theme, 'date-selected-text-color');
1033+
}
1034+
1035+
&:focus,
1036+
&:hover {
1037+
%cal-value-content {
1038+
color: --var($theme, 'date-selected-text-color');
1039+
}
10321040
}
10331041
}
10341042

10351043
%cal-value--range%cal-value--inactive%cal-value--selected%cal-value--single {
1036-
background: transparent !important;
1037-
10381044
%cal-value-content {
10391045
color: --var($theme, 'date-selected-text-color');
10401046
background: --var($theme, 'date-selected-background') !important;
10411047
}
10421048
}
10431049

1044-
%cal-value--inactive%cal-value--selected%cal-value--first {
1045-
&::after {
1046-
background: transparent !important;
1047-
}
1048-
}
1049-
1050-
%cal-value--inactive%cal-value--selected%cal-value--last {
1051-
&::before {
1052-
background: transparent !important;
1053-
}
1054-
}
1055-
10561050
%cal-value--first {
10571051
position: relative;
10581052
background: transparent;

0 commit comments

Comments
 (0)