fix(css): zero padding on custom radio + switch inputs
The global input rule (components.css:53-61) applies padding to ALL
inputs, including type=radio and type=checkbox. That inflated the new
.radio-row and .switch-row controls from 16x16px boxes into 40x32px
rectangles, which border-radius then rendered as ovals.
Adds padding: 0 + box-sizing: border-box to both control rules, and
border: 0 to the switch (the global border rule was squaring off its
pill shape). Caught in browser smoke after fa394c1.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
fa394c1f7a
commit
a18e96eec9
1 changed files with 5 additions and 0 deletions
|
|
@ -1220,8 +1220,10 @@ div.modal.modal-wide {
|
||||||
|
|
||||||
.radio-row > input[type="radio"] {
|
.radio-row > input[type="radio"] {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
box-sizing: border-box;
|
||||||
width: 1rem;
|
width: 1rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
|
padding: 0;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 1.5px solid var(--color-border);
|
border: 1.5px solid var(--color-border);
|
||||||
background: var(--color-bg);
|
background: var(--color-bg);
|
||||||
|
|
@ -1275,9 +1277,12 @@ div.modal.modal-wide {
|
||||||
|
|
||||||
.switch-row > input[type="checkbox"] {
|
.switch-row > input[type="checkbox"] {
|
||||||
appearance: none;
|
appearance: none;
|
||||||
|
box-sizing: border-box;
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 1.875rem;
|
width: 1.875rem;
|
||||||
height: 1rem;
|
height: 1rem;
|
||||||
|
padding: 0;
|
||||||
|
border: 0;
|
||||||
background: var(--color-border);
|
background: var(--color-border);
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue