aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA Web Artisan <[email protected]>2022-01-29 12:20:01 +0100
committerGitHub <[email protected]>2022-01-29 13:20:01 +0200
commit2964c12bb91b3a252aecbe1bc4041020e4efd622 (patch)
tree595bc1bc504bf032fc0bd14519a15ab338d7844f
parentd122f4052699891d952561684665798a5d5b27f2 (diff)
downloadbootstrap-2964c12bb91b3a252aecbe1bc4041020e4efd622.tar.xz
bootstrap-2964c12bb91b3a252aecbe1bc4041020e4efd622.zip
docs: remove moot autocomplete attributes (#35741)
-rw-r--r--site/content/docs/5.1/components/buttons.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/site/content/docs/5.1/components/buttons.md b/site/content/docs/5.1/components/buttons.md
index 1f279ffd7..4e90c398e 100644
--- a/site/content/docs/5.1/components/buttons.md
+++ b/site/content/docs/5.1/components/buttons.md
@@ -153,9 +153,9 @@ Visually, these toggle buttons are identical to the [checkbox toggle buttons]({{
Add `data-bs-toggle="button"` to toggle a button's `active` state. If you're pre-toggling a button, you must manually add the `.active` class **and** `aria-pressed="true"` to ensure that it is conveyed appropriately to assistive technologies.
{{< example >}}
-<button type="button" class="btn btn-primary" data-bs-toggle="button" autocomplete="off">Toggle button</button>
-<button type="button" class="btn btn-primary active" data-bs-toggle="button" autocomplete="off" aria-pressed="true">Active toggle button</button>
-<button type="button" class="btn btn-primary" disabled data-bs-toggle="button" autocomplete="off">Disabled toggle button</button>
+<button type="button" class="btn btn-primary" data-bs-toggle="button">Toggle button</button>
+<button type="button" class="btn btn-primary active" data-bs-toggle="button" aria-pressed="true">Active toggle button</button>
+<button type="button" class="btn btn-primary" disabled data-bs-toggle="button">Disabled toggle button</button>
{{< /example >}}
{{< example >}}