diff options
| author | Chris Rebert <[email protected]> | 2015-12-25 15:11:53 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2015-12-25 15:11:53 -0700 |
| commit | f954e5958cc95caf1a77b959f1dc914ac0ffeb18 (patch) | |
| tree | 2a690a78e657c64fe55de59cdb590f959e5b40bb /docs/components | |
| parent | fc7fb0694acb02c418fbe0e7e6b842c01b0d2cd4 (diff) | |
| parent | b5bf4334caed20615e0f2c0ab9753bd83fd4199d (diff) | |
| download | bootstrap-f954e5958cc95caf1a77b959f1dc914ac0ffeb18.tar.xz bootstrap-f954e5958cc95caf1a77b959f1dc914ac0ffeb18.zip | |
Merge pull request #18678 from patrickhlauke/docs-button-active1
Docs: add aria-pressed=true to components buttons active state example
Diffstat (limited to 'docs/components')
| -rw-r--r-- | docs/components/buttons.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/components/buttons.md b/docs/components/buttons.md index 0ca8c0e08..10fdd4e60 100644 --- a/docs/components/buttons.md +++ b/docs/components/buttons.md @@ -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 |
