Skip to content

Commit

Permalink
fix(radio,checkbox): fix checkbox and radio aligin (#692)
Browse files Browse the repository at this point in the history
fix the problem that checkbox and radio doesnot align with text in table
  • Loading branch information
sallerli1 authored Jan 5, 2022
1 parent 05e6399 commit cafa7ba
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/components/checkbox/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
color: @checkbox-color;
cursor: pointer;

&:not(&-button)::after {
display: inline-block;
width: 0;
overflow: hidden;
content: "\a0";
}

&-input {
position: relative;
display: inline-block;
Expand Down
7 changes: 7 additions & 0 deletions packages/components/radio/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
color: @radio-color;
cursor: pointer;

&:not(&-button)::after {
display: inline-block;
width: 0;
overflow: hidden;
content: "\a0";
}

&-input {
position: relative;
display: inline-block;
Expand Down

0 comments on commit cafa7ba

Please sign in to comment.