Closed binyamin closed 8 months ago
@ryansolid Do you need any more info?
I see that probably came from a PR. I haven't looked at this myself. Are you suggesting we just stop setting this property?
Maybe. I see two options:
aria-current="page"
as if the end
property is specified. Meaning, the end
property will only affect the class-names.aria-current
. As they say, "no ARIA is better than bad ARIA".fix by #363
Describe the bug
Whenever the
<A />
component is active, it addsaria-current="page"
to the rendered element. Since this package defaults to only matching the beginning of the route, this violates WAI-ARIA foraria-current
in two ways:/
and/docs
, they will both be marked as "current".page
value is meant to indicate the page that's currently displayed. Currently, if I'm viewing/docs/introduction
, a link to/docs
will be marked as "current".Note: I don't have a stackblitz account, and I have plenty of GitHub repositories already. If you feel my description isn't clear, I can provide a gist.
Your Example Website or App
See above
Steps to Reproduce the Bug or Issue
See above
Expected behavior
See above
Screenshots or Videos
No response
Platform
0.8.3
Additional context
No response