Skip to content

Commit

Permalink
Restore .error wrapper activation for <small> error messages in forms…
Browse files Browse the repository at this point in the history
…, without breaking required labels for Abide.
  • Loading branch information
thedeerchild committed Sep 20, 2013
1 parent 1f9750d commit 639658e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scss/foundation/components/_forms.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $input-prefix-font-color-alt: #fff !default;

// We use these to style the error states for inputs and labels
$input-error-message-padding: em-calc(6 4) !default;
$input-error-message-top: -($form-spacing) - em-calc(5) !default;
$input-error-message-top: 0;
$input-error-message-font-size: em-calc(12) !default;
$input-error-message-font-weight: bold !default;
$input-error-message-font-color: #fff !default;
Expand Down Expand Up @@ -356,7 +356,6 @@ $glowing-effect-color: $input-focus-border-color !default;
[data-abide] {
.error small.error, span.error, small.error {
@include form-error-message;
margin-top: 0;
}
span.error, small.error { display: none; }
}
Expand All @@ -376,6 +375,7 @@ $glowing-effect-color: $input-focus-border-color !default;
@include form-label-error-color;
}

> small,
small.error {
@include form-error-message;
}
Expand All @@ -388,6 +388,7 @@ $glowing-effect-color: $input-focus-border-color !default;
input.error,
textarea.error {
@include form-error-color;
margin-bottom: 0;
}

.error select {
Expand Down

0 comments on commit 639658e

Please sign in to comment.