-
Notifications
You must be signed in to change notification settings - Fork 38
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the aria-expanded
attribute to the correct element
#238
Conversation
aria-controls is already set
I'm not sure this change is quite right – now everything in the nav sits at the same level. On the current version in master, the nav looks like this: On this branch, it looks like this: |
Odd - it's not doing that on mine - investigating. |
Can we consider splitting the list structure changes into a separate PR? As I understand it, they're unrelated to the |
isOpen was initially set, to the *current* state. Subsequent controls were inverting that. If we invert it at the beginning this becomes clearer Note - also renamed to setOpen to signify intent.
85257e9
to
4ba92c8
Compare
@36degrees seperated that off |
Thanks @colinbm! Would you mind tidying up the PR description to remove the changes that have been split out? Unfortunately, there's another place in the code where
This means that the collapsed state is not announced when you first navigate to a button, only once it's been toggled at least once. We're also still including a non-sensical Sorry that I didn't spot that as part of my previous review! We should really have tests that cover all of this included in /spec/javascripts/collapsible-navigation-spec.js. However, I don't think it's fair to ask you add them as you're only fixing the existing implementation. |
@36degrees Ah, apologies - I had fixed that, but somehow it failed to go into the commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻
aria-expanded
attribute to the correct element
What
aria-expanded
attribute onto the toggle buttonWhy
From the DAC review: