Skip to content

Commit

Permalink
Removes irregular styling on Timeline (#1424)
Browse files Browse the repository at this point in the history
Co-authored-by: Cole Bemis <colebemis@github.com>
  • Loading branch information
jfuchs and colebemis committed Sep 15, 2021
1 parent 7c5bdca commit 7cf8d8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-waves-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@primer/components': patch
---

Removed irregular styling on Timeline
8 changes: 4 additions & 4 deletions src/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ const TimelineBadge = (props: TimelineBadgeProps) => {
display="flex"
className={classnames(props.className, 'TimelineItem-Badge')}
flexShrink={0}
css={`
border-radius: 50%;
border: 2px solid ${get('colors.bg.canvas')};
`}
borderRadius="50%"
borderWidth="2px"
borderStyle="solid"
borderColor="bg.canvas"
overflow="hidden"
color="icon.secondary"
bg="timeline.badgeBg"
Expand Down
4 changes: 3 additions & 1 deletion src/__tests__/__snapshots__/Timeline.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ exports[`Timeline.Badge renders consistently 1`] = `
-ms-flex-pack: center;
justify-content: center;
border-radius: 50%;
border: 2px solid #ffffff;
border-width: 2px;
border-style: solid;
border-color: #ffffff;
}
<div
Expand Down

0 comments on commit 7cf8d8b

Please sign in to comment.