Skip to content

Commit

Permalink
fix(web-components): fix double focus indicator on selected slotted s…
Browse files Browse the repository at this point in the history
…ide nav item when dark

Fix double focus indicator on side nav item (light theme colour / dark foreground) when it is
selected and a slotted link is used.
  • Loading branch information
GCHQ-Developer-847 committed Feb 11, 2025
1 parent 6fffeeb commit 560baab
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,6 @@ svg {
outline: var(--ic-hc-focus-outline);
}

:host(.navigation-item-selected.dark) .link:focus,
:host(.navigation-item.dark) ::slotted(a.active:focus) {
box-shadow: var(--ic-border-focus);
border-radius: var(--ic-border-radius);
outline: var(--ic-hc-focus-outline);
}

:host(.navigation-item) .link:active:not(:focus),
:host(.navigation-item) ::slotted(a:active:not(:focus)) {
background-color: var(--ic-brand-active);
Expand Down

0 comments on commit 560baab

Please sign in to comment.