Skip to content

Commit

Permalink
perf(radio): label 的 margin-left 改为 padding-left,增大可点击区域,增强用户体验 (#4165)
Browse files Browse the repository at this point in the history
  • Loading branch information
drylint committed Aug 23, 2021
1 parent ae42260 commit 56ac6e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/checkbox/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
&__label {
word-wrap: break-word;

.theme(margin-left, '@checkbox-label-margin');
.theme(padding-left, '@checkbox-label-margin');
.theme(color, '@checkbox-label-color');

&--left {
Expand Down
2 changes: 1 addition & 1 deletion packages/radio/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

&__label {
word-wrap: break-word;
.theme(margin-left, '@radio-label-margin');
.theme(padding-left, '@radio-label-margin');
.theme(color, '@radio-label-color');
.theme(line-height, '@radio-size');

Expand Down

0 comments on commit 56ac6e1

Please sign in to comment.