Skip to content

Commit

Permalink
Add flex to timeline item (#1403)
Browse files Browse the repository at this point in the history
* Add flex to timeline item

* Add flex to timeline item (changeset)

Co-authored-by: Cole Bemis <colebemis@github.com>
  • Loading branch information
mathiasbosman and colebemis committed Sep 3, 2021
1 parent ad4ec42 commit 65cab2c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-countries-yawn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/components': patch
---

Fix the Timeline.Item layout
1 change: 1 addition & 0 deletions src/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type StyledTimelineItemProps = {condensed?: boolean}
const TimelineItem = styled(Box).attrs<StyledTimelineItemProps>(props => ({
className: classnames('Timeline-Item', props.className)
}))<StyledTimelineItemProps>`
display: flex;
position: relative;
padding: ${get('space.3')} 0;
margin-left: ${get('space.3')};
Expand Down
8 changes: 8 additions & 0 deletions src/__tests__/__snapshots__/Timeline.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ exports[`Timeline.Badge renders consistently 1`] = `

exports[`Timeline.Item renders consistently 1`] = `
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: relative;
padding: 16px 0;
margin-left: 16px;
Expand All @@ -112,6 +116,10 @@ exports[`Timeline.Item renders consistently 1`] = `

exports[`Timeline.Item renders with condensed prop 1`] = `
.c0 {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: relative;
padding: 16px 0;
margin-left: 16px;
Expand Down

0 comments on commit 65cab2c

Please sign in to comment.