]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs: remove moot autocomplete attributes (#35741)
authorA Web Artisan <laraloop.com@gmail.com>
Sat, 29 Jan 2022 11:20:01 +0000 (12:20 +0100)
committerGitHub <noreply@github.com>
Sat, 29 Jan 2022 11:20:01 +0000 (13:20 +0200)
site/content/docs/5.1/components/buttons.md

index 1f279ffd715d2e082498a32eaa430a5ce0e4ec43..4e90c398ee9e250aa64a6a5813ee2cd78bcf3012 100644 (file)
@@ -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 >}}