mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-05-28 20:58:17 +00:00
Add aria-pressed=true to example
...as per the text immediately preceding this example
This commit is contained in:
parent
4258fb7992
commit
b5bf4334ca
1 changed files with 2 additions and 2 deletions
|
|
@ -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.
|
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 %}
|
{% example html %}
|
||||||
<a href="#" class="btn btn-primary btn-lg active" role="button">Primary 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">Link</a>
|
<a href="#" class="btn btn-secondary btn-lg active" role="button" aria-pressed="true">Link</a>
|
||||||
{% endexample %}
|
{% endexample %}
|
||||||
|
|
||||||
## Disabled state
|
## Disabled state
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue