Skip to content

Commit 5c53ee0

Browse files
committed
frontend: make radio buttons responsive
Radio buttons should render large if Font size is increased to improve accessibility.
1 parent dc2e6e3 commit 5c53ee0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

frontends/web/src/components/forms/radio.module.css

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
flex-direction: column;
1414
font-size: var(--size-default);
1515
margin-right: var(--space-half);
16-
padding-left: calc(var(--space-half) + var(--space-quarter));
16+
padding-left: calc(1.6rem + var(--space-quarter));
1717
position: relative;
1818
}
1919

@@ -22,27 +22,27 @@
2222
background: var(--background-secondary);
2323
content: '';
2424
display: inline-block;
25-
width: 12px;
26-
height: 12px;
25+
width: 1.2rem;
26+
height: 1.2rem;
2727
position: absolute;
28-
top: 4px;
28+
top: .4rem;
2929
left: 0;
3030
transition: all 100ms ease;
3131
}
3232

3333
.radio input + label::before {
34-
border: 1px solid var(--background-tertiary);
34+
border: var(--border-width) solid var(--background-tertiary);
3535
border-radius: 1em;
3636
}
3737

3838
.radio input + label::after {
3939
background: var(--color-blue);
4040
border-radius: 1em;
41-
width: 10px;
42-
height: 10px;
41+
width: 1rem;
42+
height: 1rem;
4343
position: absolute;
44-
top: 6px;
45-
left: 2px;
44+
top: .6rem;
45+
left: .2rem;
4646
opacity: 0;
4747
transform: scale(0);
4848
}

0 commit comments

Comments
 (0)