From 866cd6c6ae694ef4f7d1a75fe934f7cd28908e7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Thu, 26 Oct 2023 08:17:16 +0200 Subject: [PATCH] fix(form-control-color): adjust size when valid feedback --- scss/mixins/_forms.scss | 2 +- site/content/docs/5.3/forms/validation.md | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index 65a4a85b49..a778a13cff 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -49,7 +49,7 @@ .form-control-color { @include form-validation-state-selector($state) { - width: add($form-color-width, $input-height-inner); + width: calc($form-color-width + $form-feedback-icon-size + .8125rem); // stylelint-disable-line function-disallowed-list } } } diff --git a/site/content/docs/5.3/forms/validation.md b/site/content/docs/5.3/forms/validation.md index 3ea668e40b..b4127749ec 100644 --- a/site/content/docs/5.3/forms/validation.md +++ b/site/content/docs/5.3/forms/validation.md @@ -11,6 +11,14 @@ extra_js: async: true --- +## Form color validation test + +
+ + +

Invalid feedback

+
+ {{< callout warning >}} We are aware that currently the client-side custom validation styles and tooltips are not accessible, since they are not exposed to assistive technologies. While we work on a solution, we'd recommend either using the server-side option or the default browser validation method. {{< /callout >}}