Skip to content

Commit

Permalink
fix(switch): use border-radius token replace switch radius (Tencent#1316
Browse files Browse the repository at this point in the history
)
  • Loading branch information
uyarn authored and oljc committed May 9, 2023
1 parent 90a983d commit 1d4df25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions style/web/components/switch/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@
min-width: @switch-min-width-l;
height: @switch-height-l;
line-height: @switch-height-l;
border-radius: calc(@switch-height-l / 2);
border-radius: @border-radius-extraLarge;

&:active:not(.@{prefix}-is-disabled):not(.@{prefix}-is-loading) {

Expand Down Expand Up @@ -230,7 +230,7 @@
min-width: @switch-min-width-s;
height: @switch-height-s;
line-height: @switch-height-s;
border-radius: calc(@switch-height-s / 2);
border-radius: @border-radius-extraLarge;

&:active:not(.@{prefix}-is-disabled):not(.@{prefix}-is-loading) {

Expand Down

0 comments on commit 1d4df25

Please sign in to comment.