Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
[RD-1805] Fix input invalid style
Browse files Browse the repository at this point in the history
  • Loading branch information
josecarlosmadrid committed Oct 3, 2018
1 parent ee69061 commit 23dacd6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/_docs/components/forms2.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ file: components/FormElements/

<div class="FormGroup FormGroup--floatingLabel has-error">
<input type="email" class="Input" id="errorInput" />
<label class="Label" for="errorInput">Enter your name</label>
<label class="Label" for="errorInput">Enter your email</label>
<p class="FormGroup-feedback">This is a required field</p>
</div>

Expand Down
8 changes: 4 additions & 4 deletions src/mixins/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
}

&:focus {
border: $form-field-border-focus;
box-shadow: $form-field-box-shadow-focus;
border: $form-field-border-focus !important;
box-shadow: $form-field-box-shadow-focus !important;
}

&::placeholder {
Expand Down Expand Up @@ -69,8 +69,8 @@
display: none;
}

&:invalid {
box-shadow: none;
&:not(output) {
box-shadow: inherit;
}
}

Expand Down

0 comments on commit 23dacd6

Please sign in to comment.