mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Improve native radio alignment (#904)
* show initial checks (feels less broken now) * improve native radio dot alignment * Update src/styles/native/radio.css Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com> * Update src/styles/native/radio.css Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com> * Update src/styles/native/radio.css Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com> --------- Co-authored-by: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com>
This commit is contained in:
@@ -10,7 +10,7 @@ label:has(input[type='radio']),
|
||||
--box-shadow: none;
|
||||
--checked-icon-color: var(--wa-form-control-activated-color);
|
||||
--checked-icon-scale: 0.75;
|
||||
--toggle-size: 1lh;
|
||||
--toggle-size: round(1lh, 1px);
|
||||
|
||||
color: var(--wa-form-control-value-color);
|
||||
display: inline-flex;
|
||||
@@ -34,10 +34,8 @@ input[type='radio'] {
|
||||
background-color: var(--checked-icon-color);
|
||||
border-radius: 50%;
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: calc(var(--toggle-size) - var(--border-width));
|
||||
height: calc(var(--toggle-size) - var(--border-width));
|
||||
scale: var(--checked-icon-scale);
|
||||
width: round(calc(100% * var(--checked-icon-scale)), 1px);
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user