Skip to content

Commit

Permalink
Merge pull request #19 from tw15egan/label-margin
Browse files Browse the repository at this point in the history
refactor(label): standardizing margin on bx--label
  • Loading branch information
Chris Dhanaraj authored Apr 11, 2017
2 parents 13308ec + b193ed4 commit 335221c
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
12 changes: 9 additions & 3 deletions src/components/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,16 @@
@import '../../globals/scss/import-once';

@include exports('checkbox') {
.bx--form-item.bx--checkbox-wrapper {
margin-bottom: 1rem;

&:first-of-type {
margin-top: rem(6px);
}

.bx--checkbox-wrapper {
margin-top: 1rem;
&:last-of-type {
margin-bottom: 0;
}
}

.bx--checkbox {
Expand All @@ -26,7 +33,6 @@
display: flex;
align-items: center;
cursor: pointer;
margin-bottom: 1rem;
}

.bx--checkbox-appearance {
Expand Down
2 changes: 2 additions & 0 deletions src/components/form/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
@include exports('form') {
.bx--fieldset {
@include reset;
margin-bottom: 2rem;
}

.bx--form-item {
Expand All @@ -27,6 +28,7 @@
font-weight: 700;
display: inline-block;
vertical-align: baseline;
margin-bottom: rem(10px);
}

.bx--label--disabled {
Expand Down
1 change: 0 additions & 1 deletion src/components/number-input/_number-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
min-width: 9.375rem;
padding-left: 1rem;
font-weight: 300;
margin: .25rem 0;
height: rem(40px);
color: $text-01;
background-color: $field-01;
Expand Down
2 changes: 1 addition & 1 deletion src/components/radio-button/_radio-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
.bx--radio-button-group {
display: flex;
align-items: center;
margin-top: 1rem;
margin-top: rem(6px);
}

.bx--radio-button {
Expand Down
1 change: 0 additions & 1 deletion src/components/select/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
width: 100%;
padding: .75rem 2.75rem .75rem 1rem;
height: rem(40px);
margin: .625rem 0 0;
color: $text-01;
background-color: $field-01;
border: none;
Expand Down
1 change: 0 additions & 1 deletion src/components/text-area/_text-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
width: 100%;
min-width: 10rem;
padding: 1rem;
margin-top: .625rem;
color: $text-01;
background-color: $field-01;
border: 1px solid transparent;
Expand Down
1 change: 0 additions & 1 deletion src/components/text-input/_text-input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
height: rem(40px);
min-width: 10rem;
padding: .825rem 1rem;
margin: .625rem 0 0;
color: $text-01;
background-color: $field-01;
border: 1px solid transparent;
Expand Down

0 comments on commit 335221c

Please sign in to comment.