From e1d40f7633886298a9fb417ed4f118844ed83a0d Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Fri, 17 Oct 2014 15:17:57 +0100 Subject: Add `aria-pressed` to single toggle buttons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit also includes tiny fix/clarification to two existing unit tests for the .active class, adding data-toggle=“button” explicitly to the tested buttons Closes #14819. --- docs/_includes/js/buttons.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/_includes') diff --git a/docs/_includes/js/buttons.html b/docs/_includes/js/buttons.html index 617fc8c81..cf0bfcb9e 100644 --- a/docs/_includes/js/buttons.html +++ b/docs/_includes/js/buttons.html @@ -36,15 +36,19 @@

Single toggle

Add data-toggle="button" to activate toggling on a single button.

-
{% highlight html %} - {% endhighlight %} +
+

Pre-toggled buttons need .active and aria-pressed="true"

+

For pre-toggled buttons, you must add the .active class and the aria-pressed="true" attribute to the button yourself.

+

Checkbox / Radio

Add data-toggle="buttons" to a .btn-group containing checkbox or radio inputs to enable toggling in their respective styles.

-- cgit v1.2.3