Skip to content
Snippets Groups Projects
Unverified Commit da45fc2c authored by Maz Ameli's avatar Maz Ameli Committed by GitHub
Browse files

Restyle the Radio component a bit (#19417)

* restyle the Radio component a bit

* tweak color
parent c980f5de
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,16 @@ export const RadioButton = styled.div`
width: 12px;
height: 12px;
border: 2px solid white;
box-shadow: 0 0 0 2px ${color("shadow")};
box-shadow: 0 0 0 2px
${props => {
if (props.checked) {
return props.colorScheme
? COLOR_SCHEMES[props.colorScheme].button()
: color("brand");
} else {
return color("text-medium");
}
}};
border-radius: 12px;
background-color: ${props => {
if (props.checked) {
......@@ -54,6 +63,7 @@ export const RadioButton = styled.div`
const BaseList = styled.ul`
display: flex;
flex-direction: ${props => (props.vertical ? "column" : "row")};
font-weight: bold;
`;
const BaseItem = styled.label.attrs({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment