Skip to content

Commit 4ef52a9

Browse files
authored
chore(sidenav): remove mouse focus state (#776)
2 parents 68beef4 + 062f56e commit 4ef52a9

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

src/components/Sidenav/sidenav-item.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ button {
4444
transform: rotate(0deg);
4545
}
4646
}
47-
.sidenav-btn:focus:not(.disabled),
4847
.sidenav-btn:focus-visible:not(.disabled) {
4948
background-color: var(--sgds-bg-translucent-subtle);
5049
}
@@ -68,7 +67,6 @@ button {
6867
font-weight: var(--sgds-font-weight-semibold) !important;
6968
}
7069

71-
.no-menu-default::slotted(a:focus),
7270
.no-menu-default::slotted(a:focus-visible) {
7371
background-color: var(--sgds-bg-translucent-subtle);
7472
}

src/components/Sidenav/sidenav-link.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,10 @@
4242
opacity: var(--sgds-opacity-40);
4343
pointer-events: none;
4444
}
45-
:host([disabled]) ::slotted(a:focus),
4645
:host([disabled]) ::slotted(a:focus-visible) {
4746
outline: 0;
4847
}
4948

50-
::slotted(a:focus),
5149
::slotted(a:focus-visible) {
5250
background-color: var(--sgds-bg-translucent-subtle);
5351
}
@@ -56,7 +54,6 @@
5654
outline-offset: var(--sgds-outline-offset-focus);
5755
}
5856

59-
:host([active]) ::slotted(a:focus),
6057
:host([active]) ::slotted(a:focus-visible) {
6158
background-color: var(--sgds-primary-bg-translucent);
6259
}

0 commit comments

Comments
 (0)