Skip to content

Commit d2a5386

Browse files
committed
style(calendar): fix style in rang selection #4282
1 parent b9689a1 commit d2a5386

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

projects/igniteui-angular/src/lib/calendar/days-view/day-item.component.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ export class IgxDayItemComponent {
5454
public isFirstInRange = false;
5555

5656
@Input()
57-
@HostBinding('class.igx-calendar__date--range')
5857
public isWithinRange = false;
5958

6059
@Output()
@@ -122,6 +121,10 @@ export class IgxDayItemComponent {
122121

123122
return isDateInRanges(this.date.date, this.outOfRangeDates);
124123
}
124+
@HostBinding('class.igx-calendar__date--range')
125+
public get isWithinRangeCSS(): boolean {
126+
return !this.isSingleSelection && this.isWithinRange;
127+
}
125128

126129
@HostBinding('class.igx-calendar__date--special')
127130
public get isSpecial(): boolean {

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

+12
Original file line numberDiff line numberDiff line change
@@ -652,6 +652,18 @@
652652
}
653653
}
654654

655+
%cal-value--inactive%cal-value--selected%cal-value--first {
656+
&::after {
657+
background: transparent !important;
658+
}
659+
}
660+
661+
%cal-value--inactive%cal-value--selected%cal-value--last {
662+
&::before {
663+
background: transparent !important;
664+
}
665+
}
666+
655667
%cal-value--first {
656668
position: relative;
657669
background: transparent;

0 commit comments

Comments
 (0)