File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 21
21
-- #{$prefix } calendar-cell-week-number-color : #{$calendar-cell-week-number-color } ;
22
22
-- #{$prefix } calendar-cell-hover-color : #{$calendar-cell-hover-color } ;
23
23
-- #{$prefix } calendar-cell-hover-bg : #{$calendar-cell-hover-bg } ;
24
+ -- #{$prefix } calendar-cell-focus-box-shadow : #{$calendar-cell-focus-box-shadow } ;
24
25
-- #{$prefix } calendar-cell-disabled-color : #{$calendar-cell-disabled-color } ;
25
26
-- #{$prefix } calendar-cell-selected-color : #{$calendar-cell-selected-color } ;
26
27
-- #{$prefix } calendar-cell-selected-bg : #{$calendar-cell-selected-bg } ;
231
232
@include border-radius ($border-radius );
232
233
}
233
234
235
+ .calendars :not (.select-week ) & :focus-visible {
236
+ outline : 0 ;
237
+
238
+ .calendar-cell-inner {
239
+ box-shadow : var (--#{$prefix}calendar-cell-focus-box-shadow );
240
+ @include border-radius ($border-radius );
241
+ }
242
+ }
234
243
}
235
244
236
245
.calendar-row {
259
268
@include border-end-radius ($border-radius );
260
269
}
261
270
}
271
+
272
+ & :focus-visible {
273
+ outline : 0 ;
274
+ box-shadow : var (--#{$prefix}calendar-cell-focus-box-shadow );
275
+ @include border-radius ($border-radius );
276
+ }
262
277
}
263
278
264
279
@if $enable-dark-mode {
Original file line number Diff line number Diff line change @@ -2323,6 +2323,8 @@ $calendar-cell-hover-color: var(--#{$prefix}body-color) !defaul
2323
2323
$calendar-cell-hover-bg : var (--#{$prefix}tertiary-bg ) !default ;
2324
2324
$calendar-cell-disabled-color : var (--#{$prefix}tertiary-color ) !default ;
2325
2325
2326
+ $calendar-cell-focus-box-shadow : $focus-ring-box-shadow !default ;
2327
+
2326
2328
$calendar-cell-selected-color : $white !default ;
2327
2329
$calendar-cell-selected-bg : var (--#{$prefix}primary ) !default ;
2328
2330
You can’t perform that action at this time.
0 commit comments