]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Add aria-pressed=true to example 18678/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Fri, 25 Dec 2015 21:09:59 +0000 (21:09 +0000)
committerPatrick H. Lauke <redux@splintered.co.uk>
Fri, 25 Dec 2015 21:09:59 +0000 (21:09 +0000)
...as per the text immediately preceding this example

docs/components/buttons.md

index 0ca8c0e08e85a3571da9c464b50d6ab15d07bd9a..10fdd4e607e9bb7d1490f00fc30e52ecc2fbc477 100644 (file)
@@ -98,8 +98,8 @@ Create block level buttons—those that span the full width of a parent—by add
 Buttons will appear pressed (with a darker background, darker border, and inset shadow) when active. **There's no need to add a class to `<button>`s as they use a pseudo-class**. However, you can still force the same active appearance with `.active` (and include the <code>aria-pressed="true"</code> attribute) should you need to replicate the state programmatically.
 
 {% example html %}
-<a href="#" class="btn btn-primary btn-lg active" role="button">Primary link</a>
-<a href="#" class="btn btn-secondary btn-lg active" role="button">Link</a>
+<a href="#" class="btn btn-primary btn-lg active" role="button" aria-pressed="true">Primary link</a>
+<a href="#" class="btn btn-secondary btn-lg active" role="button" aria-pressed="true">Link</a>
 {% endexample %}
 
 ## Disabled state