Make use of aria-current as selector and remove use of active class.

This commit is contained in:
Fredrik Jonsson 2023-05-30 08:57:59 +02:00
commit 93728f1e9e
2 changed files with 17 additions and 15 deletions

View file

@ -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 {

View file

@ -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 {