Skip to content

Commit

Permalink
fix(forms): fix error message floating with spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerit3787 committed Nov 29, 2023
1 parent d01ba2a commit 2492cf2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sass/components/forms/_input-fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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 {
Expand Down

0 comments on commit 2492cf2

Please sign in to comment.