Use aria-current to mark the current element
This way screen reader users will be notified that the element is the current one. I'm not entirely sure whether `aria-current="page"` is more appropriate than `aria-current="true"`, since it's a general helper which can be used for any collection of links.
This commit is contained in:
@@ -117,7 +117,8 @@
|
||||
padding-left: $line-height / 2;
|
||||
}
|
||||
|
||||
&.is-active a {
|
||||
&.is-active a,
|
||||
&[aria-current] a {
|
||||
background: $sidebar-hover;
|
||||
border-left: 2px solid $sidebar-active;
|
||||
font-weight: bold;
|
||||
|
||||
Reference in New Issue
Block a user