aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2020-06-17 15:37:27 +0100
committerGitHub <[email protected]>2020-06-17 16:37:27 +0200
commit639fb4f251caac9b972327e2fcc0894b37db0ab6 (patch)
tree939f9f5d8cedee08f9f795fa5c9da1cb1e0cc72f
parent7af860d13a9dc693847d754d63755296f1960ad3 (diff)
downloadbootstrap-639fb4f251caac9b972327e2fcc0894b37db0ab6.tar.xz
bootstrap-639fb4f251caac9b972327e2fcc0894b37db0ab6.zip
Docs: clarify rationale for button group on links (#31071)
-rw-r--r--site/content/docs/5.0/components/button-group.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.0/components/button-group.md b/site/content/docs/5.0/components/button-group.md
index 15fef0e08..af0ce9aa1 100644
--- a/site/content/docs/5.0/components/button-group.md
+++ b/site/content/docs/5.0/components/button-group.md
@@ -26,11 +26,11 @@ In order for assistive technologies (such as screen readers) to convey that a se
In addition, groups and toolbars should be given an explicit label, as most assistive technologies will otherwise not announce them, despite the presence of the correct role attribute. In the examples provided here, we use `aria-label`, but alternatives such as `aria-labelledby` can also be used.
{{< /callout >}}
-These classes can also be added to links. Use the `.active` class to highlight a link.
+These classes can also be added to groups of links, as an alternative to the [`.nav` navigation components]({{< docsref "/components/navs" >}}).
{{< example >}}
<div class="btn-group">
- <a href="#" class="btn btn-secondary active">Active link</a>
+ <a href="#" class="btn btn-secondary active" aria-current="page">Active link</a>
<a href="#" class="btn btn-secondary">Link</a>
<a href="#" class="btn btn-secondary">Link</a>
</div>