Skip to content

Commit

Permalink
Add gradient hack to TimelineItem-badge (#1550)
Browse files Browse the repository at this point in the history
* Add gradient hack to TimelineItem-badge

* Create fuzzy-carpets-promise.md
  • Loading branch information
simurai authored Aug 26, 2021
1 parent cde3172 commit 8a684ee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fuzzy-carpets-promise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add gradient hack to TimelineItem-badge
3 changes: 2 additions & 1 deletion src/timeline/timeline-item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
// stylelint-disable-next-line primer/colors
color: var(--color-icon-secondary);
align-items: center;
background-color: var(--color-timeline-badge-bg);
background-color: var(--color-bg-canvas); // covers the "line"
background-image: linear-gradient(0deg, var(--color-timeline-badge-bg), var(--color-timeline-badge-bg));
// stylelint-disable-next-line primer/borders
border: 2px $border-style var(--color-bg-canvas);
border-radius: 50%;
Expand Down

0 comments on commit 8a684ee

Please sign in to comment.