With it being a common practice to highlight a link in the main navbar of a website when viewing the page or subpage of said link, would it be a bad use of aria-current="page"
to highlight the ancestor link in the navbar on a subpage?
For example, let's say I'm visiting /galleries/gallery1/
. Could the navbar on that subpage of galleries
be presented as:
<!-- /galleries/gallery1/index.html -->
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/about/">About</a></li>
<li><a href="/galleries/" aria-current="page">Galleries</a></li>
<li><a href="/contact/">Contact</a></li>
</ul>
</nav>
Or would that be an incorrect usage of aria-current
?