fix: separate hover/focus-visible on .nav-link; restore outline ring for keyboard focus (WCAG 2.4.7)
This commit is contained in:
11
dist/sidebar.css
vendored
11
dist/sidebar.css
vendored
@@ -73,10 +73,15 @@
|
||||
transition: background 0.1s ease;
|
||||
}
|
||||
|
||||
.nav-link:hover,
|
||||
.nav-link:hover {
|
||||
background: var(--bg-elevated);
|
||||
}
|
||||
|
||||
.nav-link:focus-visible {
|
||||
background: var(--bg-elevated);
|
||||
outline: none;
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
|
||||
.nav-link.nav-active {
|
||||
@@ -90,7 +95,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
border-top: 1px solid var(--border-color); /* subtle divider, lighter than --border */
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user