fix: aria-current links and buttons

This commit is contained in:
Lucas Larroche 2023-04-01 10:10:09 +07:00
parent 3644e4ccb5
commit e43ed98d29
13 changed files with 104 additions and 69 deletions

View file

@ -23,7 +23,7 @@
text-decoration var(#{$}transition), box-shadow var(#{$}transition);
}
&:is([aria-current], :hover, :active, :focus) {
&:is([aria-current], :hover, :active, :focus):not([aria-current="false"]) {
#{$✨}color: var(#{$}primary-hover);
#{$✨}underline: var(#{$}primary-underline-hover);
#{$✨}text-decoration: underline;
@ -39,7 +39,7 @@
#{$✨}color: var(#{$}secondary);
#{$✨}underline: var(#{$}secondary-underline);
&:is([aria-current], :hover, :active, :focus) {
&:is([aria-current], :hover, :active, :focus):not([aria-current="false"]) {
#{$✨}color: var(#{$}secondary-hover);
#{$✨}underline: var(#{$}secondary-underline-hover);
}
@ -50,7 +50,7 @@
#{$✨}color: var(#{$}contrast);
#{$✨}underline: var(#{$}contrast-underline);
&:is([aria-current], :hover, :active, :focus) {
&:is([aria-current], :hover, :active, :focus):not([aria-current="false"]) {
#{$✨}color: var(#{$}contrast-hover);
#{$✨}underline: var(#{$}contrast-underline-hover);
}