Skip to content

Commit

Permalink
feat: radio 0.5px边框
Browse files Browse the repository at this point in the history
  • Loading branch information
yx376642000 committed Mar 24, 2023
1 parent b8a200f commit bba416f
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions packages/quark/src/radio/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,22 @@

:host .quark-radio-container .quark-radio-show {
background: #ffffff;
border: 1px solid quark-formPlaceholderColor;
border-radius: 50%;
position: relative;
}

:host .quark-radio-container .quark-radio-show::after {
position: absolute;
box-sizing: border-box;
content: " ";
pointer-events: none;
top: -50%;
right: -50%;
bottom: -50%;
left: -50%;
border-radius: 50%;
border: 1px solid quark-formPlaceholderColor;
transform: scale(0.5);
}

:host([disabled]) * {
Expand Down Expand Up @@ -108,10 +122,13 @@
}

:host([checked]) .quark-radio-container .quark-radio-show {
border: none;
background: var(--radio-background, quark-primaryColor);
}

:host([checked]) .quark-radio-container .quark-radio-show::after {
border: none;
}

:host([checked]) .quark-radio-icon {
visibility: visible;
opacity: 1;
Expand Down

0 comments on commit bba416f

Please sign in to comment.