Commit f954e595 authored by Chris Rebert's avatar Chris Rebert
Browse files

Merge pull request #18678 from patrickhlauke/docs-button-active1

Docs: add aria-pressed=true to components buttons active state example
parents fc7fb069 b5bf4334
Showing with 2 additions and 2 deletions
+2 -2
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment