Skip to content

Commit

Permalink
chore: remove tmp field styling in testing story (#2687)
Browse files Browse the repository at this point in the history
- Since field styling is now merged, `testing.stories.tsx` no longer
needs to fake it
  • Loading branch information
eirikbacker authored Oct 25, 2024
1 parent f4f76d3 commit 6c1f99d
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions packages/react/stories/testing.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -295,43 +295,19 @@ export const Sizes: StoryFn = () => {
</Field>
))}
{sizes.map((size) => (
<Field
key={size}
data-size={size}
style={{
display: 'flex',
alignItems: 'center',
gap: 'var(--ds-sizing-2)',
}}
>
<Field key={size} data-size={size}>
<Input type='radio' name='my-radio' defaultChecked />
<Label>Text</Label>
</Field>
))}
{sizes.map((size) => (
<Field
key={size}
data-size={size}
style={{
display: 'flex',
alignItems: 'center',
gap: 'var(--ds-sizing-2)',
}}
>
<Field key={size} data-size={size}>
<Input type='checkbox' name='my-check' defaultChecked />
<Label>Text</Label>
</Field>
))}
{sizes.map((size) => (
<Field
key={size}
data-size={size}
style={{
display: 'flex',
alignItems: 'center',
gap: 'var(--ds-sizing-2)',
}}
>
<Field key={size} data-size={size}>
<Input
type='checkbox'
name='my-switch'
Expand Down

0 comments on commit 6c1f99d

Please sign in to comment.