Skip to content

Commit

Permalink
Fixes <Radio> and <Checkbox> for styled-components v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Javier Cuevas authored Nov 15, 2020
1 parent 64026db commit d3310e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/forms/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const RadioIcon = props =>
{...props}
__css={{
display: 'none',
'input:checked ~ &': {
'input:checked ~ &&': {
display: 'block',
}
}}
Expand All @@ -153,7 +153,7 @@ const RadioIcon = props =>
{...props}
__css={{
display: 'block',
'input:checked ~ &': {
'input:checked ~ &&': {
display: 'none',
}
}}
Expand Down Expand Up @@ -220,7 +220,7 @@ const CheckboxIcon = props =>
{...props}
__css={{
display: 'none',
'input:checked ~ &': {
'input:checked ~ &&': {
display: 'block',
}
}}
Expand All @@ -229,7 +229,7 @@ const CheckboxIcon = props =>
{...props}
__css={{
display: 'block',
'input:checked ~ &': {
'input:checked ~ &&': {
display: 'none',
}
}}
Expand Down

0 comments on commit d3310e2

Please sign in to comment.