Skip to content

Commit

Permalink
fix(switch): box-sizing issue (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
reme3d2y committed Feb 1, 2021
1 parent 3e6a437 commit 73c9eb0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/switch/src/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@
.switch {
position: relative;
border-radius: 16px;
width: 36px;
height: 20px;
width: 40px;
height: 24px;
flex-shrink: 0;
background-color: var(--switch-bg-color);
border: 2px solid var(--switch-border-color);
transition: background-color 0.2s ease, border-color 0.2s ease;
box-sizing: border-box;
}

.switch:before {
Expand Down

0 comments on commit 73c9eb0

Please sign in to comment.