Skip to content

Commit

Permalink
fix Checkbox and Radio text alignment with form label, close #5276
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Mar 13, 2017
1 parent 3002ff3 commit 696a3c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions components/checkbox/style/mixin.less
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
display: inline-block;
line-height: 1;
position: relative;
vertical-align: middle;
vertical-align: text-bottom;

.@{checkbox-prefix-cls}-wrapper:hover &,
&:hover &-inner,
Expand Down Expand Up @@ -131,7 +131,6 @@
.@{checkbox-prefix-cls} + span {
padding-left: 8px;
padding-right: 8px;
vertical-align: middle;
}

.@{checkbox-prefix-cls}-group {
Expand Down
3 changes: 1 addition & 2 deletions components/radio/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
display: inline-block;
position: relative;
line-height: 1;
vertical-align: middle;
vertical-align: text-bottom;
cursor: pointer;
.@{radio-prefix-cls}-wrapper:hover &,
&:hover,
Expand Down Expand Up @@ -110,7 +110,6 @@
span.@{radio-prefix-cls} + * {
padding-left: 8px;
padding-right: 8px;
vertical-align: middle;
}

.@{radio-prefix-cls}-button-wrapper {
Expand Down

0 comments on commit 696a3c0

Please sign in to comment.