aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Déramond <[email protected]>2021-09-04 08:36:18 +0200
committerGitHub <[email protected]>2021-09-04 09:36:18 +0300
commit2a1aa2a9f40fb8acffc27d93a374f1d243764043 (patch)
tree88b6fc18c9d7d294ff1e6e2812158124a8fb3e59
parent9852c9afbb4945e18cbb4836438c91894bedeee0 (diff)
downloadbootstrap-2a1aa2a9f40fb8acffc27d93a374f1d243764043.tar.xz
bootstrap-2a1aa2a9f40fb8acffc27d93a374f1d243764043.zip
Fix a11y issues in `.hstack` example and placeholder 'How it works' example (#34892)
-rw-r--r--site/content/docs/5.1/components/placeholders.md2
-rw-r--r--site/content/docs/5.1/helpers/stacks.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/site/content/docs/5.1/components/placeholders.md b/site/content/docs/5.1/components/placeholders.md
index cfbaf1672..55545ec69 100644
--- a/site/content/docs/5.1/components/placeholders.md
+++ b/site/content/docs/5.1/components/placeholders.md
@@ -82,7 +82,7 @@ We apply additional styling to `.btn`s via `::before` to ensure the `height` is
<span class="placeholder col-6"></span>
</p>
-<a href="#" class="btn btn-primary disabled placeholder col-4" aria-hidden="true"></a>
+<a href="#" tabindex="-1" class="btn btn-primary disabled placeholder col-4" aria-hidden="true"></a>
{{< /example >}}
{{< callout info >}}
diff --git a/site/content/docs/5.1/helpers/stacks.md b/site/content/docs/5.1/helpers/stacks.md
index a93a80046..c1316c3ad 100644
--- a/site/content/docs/5.1/helpers/stacks.md
+++ b/site/content/docs/5.1/helpers/stacks.md
@@ -68,7 +68,7 @@ Create an inline form with `.hstack`:
{{< example >}}
<div class="hstack gap-3">
- <input class="form-control me-auto" type="text" placeholder="Add your item here...">
+ <input class="form-control me-auto" type="text" placeholder="Add your item here..." aria-label="Add your item here...">
<button type="button" class="btn btn-secondary">Submit</button>
<div class="vr"></div>
<button type="button" class="btn btn-outline-danger">Reset</button>