Fix focus on Radio

pull/2524/head
Jérémy Rialland 2023-02-27 16:55:08 +01:00 committed by Jérémy Rialland
parent 6cc5390e37
commit 413e3cde83
1 changed files with 4 additions and 3 deletions

View File

@ -133,9 +133,6 @@ const Label = styled.label<{ $hideRadio?: boolean; htmlFor?: string }>`
css`
margin-top: -1px;
`}
:focus ${VisibleRadio} {
${FocusStyle}
}
`
export const LabelBody = styled(Body)<{
@ -162,6 +159,10 @@ export const InputRadio = styled.input`
border-color: ${({ theme }) => theme.colors.bases.primary[700]};
}
:focus + ${VisibleRadio} {
${FocusStyle}
}
:checked + ${VisibleRadio} ${InsideCircle} {
transform: scale(1);
}