Skip to content

Commit

Permalink
fix(nav, nav-disclosure): add fallback background-color for selected (V…
Browse files Browse the repository at this point in the history
  • Loading branch information
rachelbt authored Aug 9, 2024
1 parent d731670 commit 9a8f769
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libs/components/src/lib/nav-disclosure/nav-disclosure.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@

&[aria-current] {
color: var(#{appearance.get-appearance-token(text)});

@supports not (
color: color-mix(in srgb, var(--one-color), var(--second-color))
) {
background-color: var(#{connotation.get-connotation-token(primary)});
}
}

&:not([aria-current]) {
Expand Down
6 changes: 6 additions & 0 deletions libs/components/src/lib/nav-item/nav-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@

&[aria-current] {
color: var(#{appearance.get-appearance-token(text)});

@supports not (
color: color-mix(in srgb, var(--one-color), var(--second-color))
) {
background-color: var(#{connotation.get-connotation-token(primary)});
}
}

&:not([aria-current]) {
Expand Down

0 comments on commit 9a8f769

Please sign in to comment.