Skip to content

Commit 105296c

Browse files
authored
Make TimelineItem-badge--success ready for V2 (#1475)
* Use btn-primary-text for TimelineItem-badge--success * Use emphasis color * Create silent-cycles-camp.md
1 parent 369c5cc commit 105296c

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/silent-cycles-camp.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Make `TimelineItem-badge--success` ready for Color Modes V2

src/timeline/timeline-item.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
flex-shrink: 0;
4343

4444
&--success {
45-
color: var(--color-text-white);
46-
background-color: var(--color-btn-primary-bg);
45+
color: var(--color-fg-on-emphasis, var(--color-btn-primary-text)); // TODO remove V1 fallback
46+
background-color: var(--color-success-emphasis, var(--color-btn-primary-bg)); // TODO remove V1 fallback
4747
border: $border-width $border-style var(--color-timeline-badge-success-border);
4848
}
4949
}

0 commit comments

Comments
 (0)