mirror of
https://github.com/picocss/pico.git
synced 2025-04-26 11:16:15 -04:00
fix: Make aria-current selector more specific on links
This commit is contained in:
parent
8ba5740b8a
commit
55d5e9d879
14 changed files with 9715 additions and 1225 deletions
|
@ -177,7 +177,7 @@
|
|||
&:focus,
|
||||
&:active,
|
||||
&:focus-visible,
|
||||
&[aria-current] {
|
||||
&[aria-current]:not([aria-current="false"]) {
|
||||
background-color: var(#{$✨}dropdown-hover-background-color);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue