]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Only change aria-pressed if it's not an input-based radio or checkbox group
authorPatrick H. Lauke <redux@splintered.co.uk>
Mon, 10 Apr 2017 13:43:54 +0000 (14:43 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Apr 2017 13:43:54 +0000 (14:43 +0100)
commit3f6e1faf45d503d670e01b600a0455e2da0fe660
treebd4366e7094dcc6a92b704ed88e4f2606884c30e
parent278ddd0acd9700917791af0b67d44bc21ed17498
Only change aria-pressed if it's not an input-based radio or checkbox group

* Only change aria-pressed if it's not an input-based radio or checkbox group

aria-pressed="true"/aria-pressed="false" is really only useful for
making on/off toggles out of, say, `<button>` elements. the attribute is
useless (and potentially confusing/conflicting) on, say, `<label>`
elements for an existing `<input type="radio">` or similar.

* Add unit test for buttons.js and radio/checkbox inputs in button groups
js/src/button.js
js/tests/unit/button.js