]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Fix collapse.js aria-expanded behavior
authorPatrick H. Lauke <redux@splintered.co.uk>
Mon, 10 Apr 2017 13:51:22 +0000 (14:51 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2017 13:51:22 +0000 (14:51 +0100)
commit18e8704221791e70d0bf4ac9ff45d4e897a02e63
treea3b811af9e603b2a29890a2caf65a426c22f563c
parent3f6e1faf45d503d670e01b600a0455e2da0fe660
Fix collapse.js aria-expanded behavior

* Remove aria-expanded from collapse.js target element

aria-expanded="true"/aria-expanded="false" only applies to the trigger,
not the element that is being expanded/collapsed.

* Tweak collapse.js accessibility section

...to make it clearer that the aria-expanded attribute always just goes
on the control.

* Fix collapse.js unit tests

- 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
docs/components/collapse.md
js/src/collapse.js
js/tests/unit/collapse.js