From 2492cf2a23089dd3d07481d476df2d8aa9ca0632 Mon Sep 17 00:00:00 2001 From: Jerit3787 Date: Wed, 29 Nov 2023 17:42:01 +0800 Subject: [PATCH] fix(forms): fix error message floating with spacing fix #437 --- sass/components/forms/_input-fields.scss | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sass/components/forms/_input-fields.scss b/sass/components/forms/_input-fields.scss index b934c06649..153c7c1924 100644 --- a/sass/components/forms/_input-fields.scss +++ b/sass/components/forms/_input-fields.scss @@ -42,8 +42,7 @@ textarea.materialize-textarea { } // Custom Success Message - &.valid ~ .supporting-text:after, - &:focus.valid ~ .supporting-text:after { + &:focus.valid ~ .supporting-text:before { @extend %custom-success-message; } @@ -58,8 +57,8 @@ textarea.materialize-textarea { } // Custom Error message - &.invalid ~ .supporting-text:after, - &:focus.invalid ~ .supporting-text:after { + &.invalid ~ .supporting-text:before, + &:focus.invalid ~ .supporting-text:before { @extend %custom-error-message; } &:focus.invalid ~ label {