Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Extend <router-link> to set an aria-current attribute for active links, instead of an active class #2116
What problem does this feature solve?
This feature enables developers to mark up the active router link in an accessible manner for users of assistive technologies.
What does the proposed API look like?
Similar to the
Criteria for whether the DOM attribute should be set are the same as for
The DOM attribute's value should be taken from the
That's pretty much it, yes.
The only nuance here is that there's more choices than just
Hence the ability to configure the value of the attribute is needed.
I just happened to have the same issue as I wanted to manage the
Any update on this improvement? I'm glad to help and do a PR if you want.
The first step would be to have the possibility to add the
Happy to discuss the matter and give a hand
referenced this issue
Nov 22, 2018
For what its worth, here is one possible solution to work/hack with