Skip to content

Commit

Permalink
Controls: fix bool control style to match value
Browse files Browse the repository at this point in the history
When `true`, the toggle slider should rest on the label "True".
  • Loading branch information
tewson committed Jul 24, 2021
1 parent 13a2dd7 commit 534fbae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/src/controls/Boolean.tsx
Expand Up @@ -70,7 +70,7 @@ const Label = styled.label(({ theme }) => ({
},
},

'input:checked ~ span:first-of-type, input:not(:checked) ~ span:last-of-type': {
'input:checked ~ span:last-of-type, input:not(:checked) ~ span:first-of-type': {
background: theme.background.app,
boxShadow: `${opacify(0.1, theme.appBorderColor)} 0 0 2px`,
color: theme.color.defaultText,
Expand Down

0 comments on commit 534fbae

Please sign in to comment.