Skip to content
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

Maintain aria-expanded along with .current in menu #1151

Merged
merged 1 commit into from Jun 22, 2021

Conversation

jonels-msft
Copy link
Contributor

Fixes #955

It might be faster to chain the jQuery calls together to avoid running searches twice, or searching for $('.current') and applying the aria attribute. However just kicking off this PR with a basic fix.

@Blendify
Copy link
Member

The change is acceptable, however chaining them together like you said is probably the best way to go about it

Use jquery setter chaining for speed
@jonels-msft
Copy link
Contributor Author

@Blendify I rebased this and used jQuery chaining for efficiency.

@jonels-msft
Copy link
Contributor Author

Nice! Can we get this merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Menu items lacking accessible expanded/collapsed state markup
2 participants