Skip to content

Commit

Permalink
Clean up story
Browse files Browse the repository at this point in the history
  • Loading branch information
juliewongbandue committed Sep 12, 2023
1 parent 92e43f9 commit e684b8f
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions src/components/inputs/Checkbox/Checkbox.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,46 @@ export default {
},
};

const StyledCheck = styled(Checkbox)`
// input {
// &:checked ~ div[type='checkbox'] {
// border: 1px solid black;
// &::after {
// border-color: black;
// background-color: black;
// }
// }
// }
--checked-color: black;
`;

const Template: Story<Props> = (args) => {
return (
<Layout.StoryVertical>
<Checkbox {...args} />
<Checkbox label="default disabled" value="default" disabled />
<Checkbox label="default checked" value="default" checked />
<Checkbox
label="default checked disabled"
value="default"
checked
disabled
/>
<StyledCheck
<Checkbox
label="default checked disabled indeterminate"
value="default"
checked
disabled
indeterminate
/>
<Checkbox
style={{ '--checked-color': 'black' } as React.CSSProperties}
label="--checked-color:black disabled"
value="black"
disabled
/>
<Checkbox
style={{ '--checked-color': 'black' } as React.CSSProperties}
label="--checked-color:black checked"
value="black"
checked
/>
<StyledCheck
<Checkbox
style={{ '--checked-color': 'black' } as React.CSSProperties}
label="--checked-color:black disabled"
value="black"
checked
disabled
/>
<StyledCheck
<Checkbox
style={{ '--checked-color': 'black' } as React.CSSProperties}
label="--checked-color:black disabled indeterminate"
value="black"
checked
Expand Down

0 comments on commit e684b8f

Please sign in to comment.