Skip to content

Commit 82c172a

Browse files
authored
fix(calendar): Rearrange the focus styles for year-month view classes (#2030)
1 parent d331c2c commit 82c172a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/components/calendar/themes/shared/bootstrap/year-month-view.bootstrap.scss

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ $theme: $bootstrap;
3737
background: var-get($theme, 'ym-current-hover-background');
3838
}
3939

40-
&:focus {
41-
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-current-outline-focus-color');
42-
}
43-
4440
&:hover {
4541
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-current-outline-hover-color');
4642
}
43+
44+
&:focus {
45+
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-current-outline-focus-color');
46+
}
4747
}
4848

4949
&[part~='selected'] {
@@ -57,13 +57,13 @@ $theme: $bootstrap;
5757
background: var-get($theme, 'ym-selected-hover-background');
5858
}
5959

60-
&:focus {
61-
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-selected-focus-outline-color');
62-
}
63-
6460
&:hover {
6561
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-selected-hover-outline-color');
6662
}
63+
64+
&:focus {
65+
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-selected-focus-outline-color');
66+
}
6767
}
6868

6969
&[part~='selected'][part~='current'] {
@@ -77,13 +77,13 @@ $theme: $bootstrap;
7777
background: var-get($theme, 'ym-selected-current-hover-background');
7878
}
7979

80-
&:focus {
81-
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-selected-current-outline-focus-color');
82-
}
83-
8480
&:hover {
8581
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-selected-current-outline-hover-color');
8682
}
83+
84+
&:focus {
85+
box-shadow: 0 0 0 rem(1px) var-get($theme, 'ym-selected-current-outline-focus-color');
86+
}
8787
}
8888
}
8989

0 commit comments

Comments
 (0)