Skip to content

Commit

Permalink
style: use new pico fieldset group in stories
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavPetrik committed Feb 19, 2024
1 parent 75534b1 commit a9dece1
Showing 1 changed file with 8 additions and 32 deletions.
40 changes: 8 additions & 32 deletions src/components/list/List.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,16 +126,10 @@ export const ListOfPrimitiveValues = listStory({
builder: (value) => textField({ value }),
}),
children: ({ fields, RemoveButton }) => (
<div
style={{
display: "grid",
gridGap: 16,
gridTemplateColumns: "auto min-content",
}}
>
<fieldset role="group">
<InputField atom={fields} component="input" />
<RemoveButton />
</div>
</fieldset>
),
},
});
Expand Down Expand Up @@ -169,16 +163,10 @@ export const CustomAddButton = listStory({
</button>
),
children: ({ fields, RemoveButton }) => (
<div
style={{
display: "grid",
gridGap: 16,
gridTemplateColumns: "auto min-content",
}}
>
<fieldset role="group">
<InputField atom={fields} component="input" />
<RemoveButton />
</div>
</fieldset>
),
},
});
Expand Down Expand Up @@ -207,16 +195,10 @@ export const EmptyRenderProp = listStory({
</article>
),
children: ({ fields, RemoveButton }) => (
<div
style={{
display: "grid",
gridGap: 16,
gridTemplateColumns: "auto min-content",
}}
>
<fieldset role="group">
<InputField atom={fields} component="input" />
<RemoveButton />
</div>
</fieldset>
),
},
});
Expand Down Expand Up @@ -272,13 +254,7 @@ export const OrderingItems = listStory({
}),
AddButton: AddHobbyButton,
children: ({ fields, moveUp, moveDown, RemoveButton }) => (
<div
style={{
display: "grid",
gridGap: 16,
gridTemplateColumns: "auto min-content min-content min-content",
}}
>
<fieldset role="group">
<InputField atom={fields} component="input" />
<button type="button" className="outline" onClick={moveUp}>
Up
Expand All @@ -287,7 +263,7 @@ export const OrderingItems = listStory({
Down
</button>
<RemoveButton />
</div>
</fieldset>
),
},
});
Expand Down

0 comments on commit a9dece1

Please sign in to comment.