Skip to content

Commit 23bf45d

Browse files
committed
fix: update other usages of cdk-keyboard-focused
1 parent cff698f commit 23bf45d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

src/lib/button-toggle/button-toggle.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ $mat-button-toggle-border-radius: 2px !default;
3838
.mat-button-toggle {
3939
white-space: nowrap;
4040
position: relative;
41-
}
4241

43-
.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay {
44-
opacity: 1;
42+
&.cdk-keyboard-focused,
43+
&.cdk-program-focused {
44+
.mat-button-toggle-focus-overlay {
45+
opacity: 1;
46+
}
47+
}
4548
}
4649

4750
.mat-button-toggle-label-content {

src/lib/datepicker/_datepicker-theme.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ $mat-calendar-weekday-table-font-size: 11px !default;
5252
}
5353

5454
:not(.mat-calendar-body-disabled):hover,
55-
.cdk-keyboard-focused .mat-calendar-body-active {
55+
.cdk-keyboard-focused .mat-calendar-body-active,
56+
.cdk-program-focused .mat-calendar-body-active {
5657
& > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected) {
5758
background-color: mat-color($background, hover);
5859
}

src/lib/slider/slider.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ $mat-slider-focus-ring-size: 30px !default;
9393
background-color $swift-ease-out-duration $swift-ease-out-timing-function,
9494
opacity $swift-ease-out-duration $swift-ease-out-timing-function;
9595

96-
.cdk-keyboard-focused & {
96+
.cdk-keyboard-focused &,
97+
.cdk-program-focused & {
9798
transform: scale(1);
9899
opacity: 1;
99100
}

0 commit comments

Comments
 (0)