Make use of aria-current as selector and remove use of active class.
This commit is contained in:
parent
9bdec6ca76
commit
93728f1e9e
2 changed files with 17 additions and 15 deletions
|
|
@ -196,17 +196,13 @@ figure {
|
|||
}
|
||||
|
||||
&:active,
|
||||
&.active {
|
||||
&[aria-current] {
|
||||
background-color: var(--color-brand);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu a.active {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Search
|
||||
|
||||
.search-text {
|
||||
|
|
|
|||
|
|
@ -32,6 +32,12 @@ a:active {
|
|||
color: var(--color-link-active);
|
||||
}
|
||||
|
||||
// Remove underline from links to current page to
|
||||
// indicate that there is no need to click on it.
|
||||
[aria-current] {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.link-nav,
|
||||
%link-nav {
|
||||
a {
|
||||
|
|
|
|||
Loading…
Reference in a new issue