Skip to content

Commit

Permalink
Make radio selections more accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
VirginiaDooley committed Nov 7, 2022
1 parent 7891d6c commit 020efb4
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions system/partials/_radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,30 @@
white-space: nowrap;
width: 1px;
}
.ds-field-radio > span {
order: 1px solid #dee0e2;
background-color: #dee0e2;
padding:1em;
margin: $ss2;
display: inline-block;
}

.ds-field-radio > span::before {
content: '';
border-radius: 50%;
display: inline-block;
width: 0.75em;
height: 0.75em;
width: 1.5em;
height: 1.5em;
border: 2px solid $black;
margin-right: $ss3;
vertical-align: -0.125em;
margin-right: $ss4;
vertical-align: middle;
background-color: $white;
}

.ds-field-radio > input:checked + span {
background-color: white !important;
}

.ds-field-radio > input:checked + span::before {
background-color: $pinkForWhite;
box-shadow: inset 0 0 0 $ss2 $white;
Expand All @@ -36,5 +47,6 @@
text-decoration: underline;
text-decoration-color: $amber;
text-decoration-thickness: 2px;
outline: solid $amber;
}
}

0 comments on commit 020efb4

Please sign in to comment.