Skip to content

Commit 543852e

Browse files
fix(core/burger-menu): show focus border only on focus-visible
1 parent 864fc17 commit 543852e

File tree

1 file changed

+4
-24
lines changed

1 file changed

+4
-24
lines changed

packages/core/src/components/menu/burger-menu.scss

+4-24
Original file line numberDiff line numberDiff line change
@@ -37,47 +37,27 @@ $focus-bdr-width: 0.0625rem;
3737
fill: var(--theme-menu-btn--color);
3838
opacity: 1;
3939
x: 2px;
40-
transition:
41-
x 0.075s ease-in 0.15s,
42-
transform 0.075s ease-in-out 0.075s,
43-
y 0.075s ease-in-out,
44-
opacity 0.075s linear 0.075s;
40+
transition: x 0.075s ease-in 0.15s, transform 0.075s ease-in-out 0.075s,
41+
y 0.075s ease-in-out, opacity 0.075s linear 0.075s;
4542
transform-origin: center;
4643
}
4744
}
4845

4946
:host(:hover) {
5047
.burger-menu-button {
5148
background-color: var(--theme-menu-btn--background--hover);
52-
border-width: $focus-bdr-width;
53-
border-style: solid;
54-
border-color: transparent;
55-
border-radius: var(--theme-btn--border-radius);
56-
outline: none;
57-
cursor: pointer;
5849
}
5950
}
6051

61-
:host(:focus) {
62-
.burger-menu-button {
63-
border-width: $focus-bdr-width;
64-
border-style: solid;
52+
.burger-menu-button {
53+
@include focus-visible {
6554
border-color: var(--theme-color-focus-bdr);
66-
border-radius: var(--theme-btn--border-radius);
67-
outline: none;
68-
cursor: pointer;
6955
}
7056
}
7157

7258
:host(:active) {
7359
.burger-menu-button {
7460
background-color: var(--theme-menu-btn--background--active);
75-
border-width: $focus-bdr-width;
76-
border-style: solid;
77-
border-color: var(--theme-color-focus-bdr);
78-
border-radius: var(--theme-btn--border-radius);
79-
outline: none;
80-
cursor: pointer;
8161
}
8262
}
8363

0 commit comments

Comments
 (0)