From 4b60f7d74f58e62d51945d33812fae0563571b13 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 16 Sep 2020 13:49:58 -0700 Subject: [PATCH 1/4] Remove commented out selector --- scss/forms/_input-group.scss | 1 - 1 file changed, 1 deletion(-) diff --git a/scss/forms/_input-group.scss b/scss/forms/_input-group.scss index 6aea1a8b6a14..52ac2650d8a5 100644 --- a/scss/forms/_input-group.scss +++ b/scss/forms/_input-group.scss @@ -2,7 +2,6 @@ // Base styles // -// .input-group, .input-group-start, .input-group-end { position: relative; From 66ca92f8513cc4f294e2920f9d0ce257db0a65e2 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 16 Sep 2020 14:25:01 -0700 Subject: [PATCH 2/4] Update form validation examples to include aria-describedby and ids --- site/content/docs/5.0/forms/validation.md | 118 ++++++++++++---------- 1 file changed, 65 insertions(+), 53 deletions(-) diff --git a/site/content/docs/5.0/forms/validation.md b/site/content/docs/5.0/forms/validation.md index 309ab726f5b8..259649c6d980 100644 --- a/site/content/docs/5.0/forms/validation.md +++ b/site/content/docs/5.0/forms/validation.md @@ -21,6 +21,10 @@ Here's how form validation works with Bootstrap: - Bootstrap scopes the `:invalid` and `:valid` styles to parent `.was-validated` class, usually applied to the `
`. Otherwise, any required field without a value shows up as invalid on page load. This way, you may choose when to activate them (typically after form submission is attempted). - To reset the appearance of the form (for instance, in the case of dynamic form submissions using AJAX), remove the `.was-validated` class from the `` again after submission. - As a fallback, `.is-invalid` and `.is-valid` classes may be used instead of the pseudo-classes for [server-side validation](#server-side). They do not require a `.was-validated` parent class. +- Proper ARIA attributes should always be used to programmatically relate form validation feedback messages with their associated form controls. + +There are some limitations and browser considerations to be aware of when using form validation features: + - Due to constraints in how CSS works, we cannot (at present) apply styles to a `