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

Fix collapse.js aria-expanded behavior #22397

Merged
merged 5 commits into from
Apr 10, 2017
Merged

Fix collapse.js aria-expanded behavior #22397

merged 5 commits into from
Apr 10, 2017

Conversation

patrickhlauke
Copy link
Member

Stops incorrectly adding/toggling aria-expanded on the target, as this attribute only applies to the control/trigger. Also expands accessibility note for collapse.js and tweaks the qunit tests.

Closes #22041

aria-expanded="true"/aria-expanded="false" only applies to the trigger,
not the element that is being expanded/collapsed.
...to make it clearer that the aria-expanded attribute always just goes
on the control.
- reword some of the text to make it clear we're checking behavior of
trigger/control
- move incorrect aria-expanded out of the <div>s and to the actual
trigger/control <a>s
- fix incorrect test assertion text output false -> true
@mdo mdo requested review from bardiharborow and Johann-S April 9, 2017 17:32
Copy link
Member

@Johann-S Johann-S left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@patrickhlauke patrickhlauke removed the request for review from bardiharborow April 10, 2017 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants