-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 [BUG] - SubNav.Link
marked as current when aria-current="false"
#572
Comments
馃憢 @sergioalvz - thanks for opening this issue. Is there a need to set
While I can verify "false" is a valid value, I'm checking that this isn't blocking you right now? |
Hi @rezrah,
No problem. We have changed the code a bit, so we only set |
Describe the bug
Version
0.32.0
of@primer/react-brand
incorrectly marksSubNav.Link
items as "current" when usingaria-current="false"
. According to MDN,false
is a valid value for this attribute.Currently, the styling for
SubNav.Link
is activated by the mere presence of thearia-current
attribute, rather than by its actual value.brand/packages/react/src/SubNav/SubNav.module.css
Lines 183 to 186 in eaeb50e
Reproduction steps
https://codepen.io/sergioalvz/pen/rNbrbae
Expected behavior
Only elements with
aria-current="page"
oraria-current="true"
are marked as currentScreenshots
No response
Browsers
No response
OS
No response
The text was updated successfully, but these errors were encountered: