Skip to content

Commit

Permalink
fix(switch, modal): fix style (#1664)
Browse files Browse the repository at this point in the history
Co-authored-by: ZhaoChen <ittisennsinn@gmail.com>
  • Loading branch information
itiiss and itiisennsinn committed Dec 13, 2021
1 parent 366c3be commit 6de60fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/modal/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

&-close {
position: absolute;
top: 24px;
top: 16px;
right: 20px;
display: inline-flex;
align-items: center;
Expand Down
17 changes: 15 additions & 2 deletions src/switchGroup/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@
}

.@{switch__wrapper__checked} {
color: @blue-3;
background: @gray-1;
span {
color: @blue-3;
vertical-align: bottom;
background: @gray-1;
}
}

.@{switch__wrapper__disabled} {
Expand Down Expand Up @@ -104,4 +107,14 @@
label:nth-child(n + 2) {
border-left: 1px solid @gray-2;
}
label:nth-child(1) {
span {
border-radius: 4px 0 0 4px;
}
}
label:last-child {
span {
border-radius: 0 4px 4px 0;
}
}
}

1 comment on commit 6de60fe

@vercel
Copy link

@vercel vercel bot commented on 6de60fe Dec 13, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.