From 73357f9430c269006a2213cb713e306ec97021f5 Mon Sep 17 00:00:00 2001 From: "Patrick H. Lauke" Date: Fri, 16 Feb 2018 11:07:36 +0000 Subject: [PATCH] [Docs] Clarify suggested use of custom validation styles, add note about resetting form appearance after validation (#25628) * Expand/clarify recommendation for using custom validation styles Seems support for correctly announcing browser default navigation bubbles/notifications has improved recently. Now it seems only Chrome (at least on Win and Android, not tested on macOS) is the odd one out. However, we should really make sure the custom validation messages are also tied correctly to their relevant form controls - need to dig out the PR that will ensure that. * Add note about resetting form appearance after submission xref https://github.com/twbs/bootstrap/issues/25626 --- docs/4.0/components/forms.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/4.0/components/forms.md b/docs/4.0/components/forms.md index 59ce56bdc7ff..07063854d56e 100644 --- a/docs/4.0/components/forms.md +++ b/docs/4.0/components/forms.md @@ -700,7 +700,7 @@ While Bootstrap will apply these styles in all browsers, Internet Explorer 11 an Provide valuable, actionable feedback to your users with HTML5 form validation–[available in all our supported browsers](https://caniuse.com/#feat=form-validation). Choose from the browser default validation feedback, or implement custom messages with our built-in classes and starter JavaScript. {% callout warning %} -We **highly recommend** custom validation styles as native browser defaults are not announced to screen readers. +We currently recommend using custom validation styles, as native browser default validation messages are not consistently exposed to assistive technologies in all browsers (most notably, Chrome on desktop and mobile). {% endcallout %} ### How it works @@ -709,6 +709,7 @@ Here's how form validation works with Bootstrap: - HTML form validation is applied via CSS's two pseudo-classes, `:invalid` and `:valid`. It applies to ``, `