Skip to content

Commit

Permalink
feat(errors): align bootstrap errors to checkboxes and radio buttons
Browse files Browse the repository at this point in the history
[Finishes #80657304]

Signed-off-by: Geoff Pleiss <gpleiss@pivotal.io>
  • Loading branch information
jdodd-pivotal committed Oct 15, 2014
1 parent dd1883e commit 3fe4ad1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/pivotal-ui/components/forms.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,16 @@ Bootstrap includes validation styles for error and success states on form contro
@include validation-label-color()
}

// align bootstrap errors for checkboxes and radio buttons
.radio,
.checkbox {
padding-left: 20px;

label {
padding-left: 0;
}
}

// hooking up angular validity to bootstrap classes
input.ng-invalid.ng-dirty {
outline: 1px solid $red-3;
Expand Down

0 comments on commit 3fe4ad1

Please sign in to comment.