Skip to content

Commit

Permalink
fix(forms): update error and help states
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmatthew committed Aug 18, 2021
1 parent a10fa39 commit 36f4875
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions scss/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,23 +82,25 @@ legend {
margin-top: math.div($spacer, 2);
}

.field-error--new {
display: inline-block;
padding-left: $spacer;
.field-error,
.help-block {
display: block;
padding: math.div($spacer, 4) $spacer;
margin-bottom: math.div($spacer, 2);
border-left: 3px solid;
}

.field-error {
color: $red;
border-left: 3px solid $red;
border-left-color: $red;
}

.help-block--new {
padding-left: $spacer;
margin-bottom: 1.25rem;
.help-block {
color: $black;
background-color: $white;
border-left: 3px solid $primary;
border-left-color: $primary;
}

.input-group + .field-error--new {
.input-group + .field-error {
margin-top: math.div($spacer, 2);
}

Expand Down

0 comments on commit 36f4875

Please sign in to comment.