Skip to content

Commit

Permalink
Merge pull request #418 from kokengthecoder/timeline-status-pill
Browse files Browse the repository at this point in the history
Adjust to top down arrangement if pills' size exceed device width
  • Loading branch information
qroll authored Mar 4, 2024
2 parents 416defb + 4b4e2ea commit c3ea7ba
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/timeline/timeline.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ export const TimelineItemContent = styled.div`

export const TimelinePills = styled(Text.H3)`
display: flex;
flex-wrap: wrap;
margin-bottom: 0.5rem;
gap: 0.5rem;
`;

export const TimelinePill = styled(Pill)`
padding: 0.125rem 0.5rem;
margin-right: 0.5rem;
`;
23 changes: 23 additions & 0 deletions stories/timeline/timeline.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,29 @@ export const Default: StoryObj<Component> = {
},
],
},
{
title: "Item 7",
content: (
<Text.Body>
This one comes with Pill DS icons with long
status text.
</Text.Body>
),
statuses: [
{
type: "outline",
colorType: "red",
children: "Status outline red long text",
icon: <PlusCircleFillIcon />,
},
{
type: "solid",
colorType: "blue",
children: "Status solid blue",
icon: <PlaceholderIcon />,
},
],
},
]}
/>
</StoryContainer>
Expand Down

0 comments on commit c3ea7ba

Please sign in to comment.