From 96b0fd67f5c400431255a5f3b207042b93452235 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Thu, 1 Jun 2023 04:30:28 +0200 Subject: [PATCH] docs(forms): switch to aria-describedby (#38592) * docs(forms): switch to aria-describedby * docs(forms): revert #37587 callout change * docs(forms): improved sizing select examples labels --- site/content/docs/5.3/forms/form-control.md | 6 +++--- site/content/docs/5.3/forms/select.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/site/content/docs/5.3/forms/form-control.md b/site/content/docs/5.3/forms/form-control.md index 0c6b5997e516..1f3474dacf42 100644 --- a/site/content/docs/5.3/forms/form-control.md +++ b/site/content/docs/5.3/forms/form-control.md @@ -36,14 +36,14 @@ Set heights using classes like `.form-control-lg` and `.form-control-sm`. Block-level or inline-level form text can be created using `.form-text`. {{< callout warning >}} -Form text should be explicitly associated with the form control it relates to using the `aria-labelledby` (for mandatory information such as data format) or `aria-describedby` (for complementary information) attribute. This will ensure that assistive technologies—such as screen readers—will announce this form text when the user focuses or enters the control. +Form text should be explicitly associated with the form control it relates to using the `aria-describedby` attribute. This will ensure that assistive technologies—such as screen readers—will announce this form text when the user focuses or enters the control. {{< /callout >}} Form text below inputs can be styled with `.form-text`. If a block-level element will be used, a top margin is added for easy spacing from the inputs above. {{< example >}} - +
Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
@@ -57,7 +57,7 @@ Inline text can use any typical inline HTML element (be it a ``, ``
- +
diff --git a/site/content/docs/5.3/forms/select.md b/site/content/docs/5.3/forms/select.md index 07ee8c8b15e9..c58fdf75e42c 100644 --- a/site/content/docs/5.3/forms/select.md +++ b/site/content/docs/5.3/forms/select.md @@ -24,14 +24,14 @@ Custom ` + - @@ -42,7 +42,7 @@ You may also choose from small and large custom selects to match our similarly s The `multiple` attribute is also supported: {{< example >}} - @@ -53,7 +53,7 @@ The `multiple` attribute is also supported: As is the `size` attribute: {{< example >}} -