fix: Make aria-current selector more specific on links

This commit is contained in:
Brian Espinosa 2023-10-20 12:10:00 -07:00
parent 8ba5740b8a
commit 55d5e9d879
14 changed files with 9715 additions and 1225 deletions

View file

@ -177,7 +177,7 @@
&:focus,
&:active,
&:focus-visible,
&[aria-current] {
&[aria-current]:not([aria-current="false"]) {
background-color: var(#{$}dropdown-hover-background-color);
}
}

View file

@ -93,7 +93,7 @@
transition: opacity var(#{$}transition);
}
&:is([aria-current], :hover, :active, :focus) {
&:is([aria-current]:not([aria-current="false"]), :hover, :active, :focus) {
opacity: 1;
}
}

View file

@ -96,7 +96,7 @@
}
// Minimal support for aria-current
& a[aria-current] {
& a[aria-current]:not([aria-current="false"]) {
background-color: transparent;
color: inherit;
text-decoration: none;