Skip to content

Commit

Permalink
Added temporary fix for empty input error label positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Jul 21, 2017
1 parent 60a987c commit 3f69015
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sass/components/forms/_input-fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@ textarea.materialize-textarea {
& + label:after {
@extend %input-after-style;
}

// TODO: Remove once input fields are reworked to support validation messages better
&.invalid + label:after,
&.valid + label:after{
display: none;
}

&.invalid + label.active:after,
&.valid + label.active:after{
display: block;
}
}


Expand Down

0 comments on commit 3f69015

Please sign in to comment.