Skip to content

Commit

Permalink
feat(optionality): 5 options for optionality
Browse files Browse the repository at this point in the history
  • Loading branch information
benprotheroe committed May 16, 2024
1 parent db250f7 commit 631ce65
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,47 @@ export const Default: Story = {
</OakPupilJourneyOptionalityItem>
),
};

export const FiveOptions: Story = {
render: (args) => (
<OakPupilJourneyOptionalityItem {...args}>
<OakPupilJourneyOptionalityButton
title="Unit 1"
numberOfLessons={7}
href="#"
disabled={args.disabled}
unavailable={args.unavailable}
/>
<OakPupilJourneyOptionalityButton
title="Unit 2"
numberOfLessons={8}
href="#"
disabled={args.disabled}
unavailable={args.unavailable}
/>
<OakPupilJourneyOptionalityButton
title="Unit 3"
numberOfLessons={7}
href="#"
disabled={args.disabled}
unavailable={args.unavailable}
/>
<OakPupilJourneyOptionalityButton
title="Unit 4 qeqwe ewe qewewqe wqewqe wqewq "
numberOfLessons={7}
href="#"
disabled={args.disabled}
unavailable={args.unavailable}
/>
<OakPupilJourneyOptionalityButton
title="Unit 5 wqedasdcqwaxerf wecrcewerewx fecfwecrtwe recwefwecr refewr"
numberOfLessons={7}
href="#"
disabled={args.disabled}
unavailable={args.unavailable}
/>
</OakPupilJourneyOptionalityItem>
),
};

FiveOptions.args = {};
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ export const OakPupilJourneyOptionalityItem = (
{props.title}
</OakBox>
</OakFlex>
<OakFlex $flexDirection={["column", "row"]} $gap={"space-between-xs"}>
<OakFlex
$flexDirection={["column", "row"]}
$gap={"space-between-xs"}
$flexWrap={"wrap"}
>
{children}
</OakFlex>
</OakFlex>
Expand Down

0 comments on commit 631ce65

Please sign in to comment.