Skip to content

Commit 0708eb2

Browse files
lukasoppermannjonrohan
authored andcommitted
Replace bgColor for StateLabel draft with new draft token (#6905)
Co-authored-by: Jon Rohan <[email protected]>
1 parent cfb36a4 commit 0708eb2

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.changeset/sweet-islands-sleep.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@primer/react': patch
3+
---
4+
5+
Replace StateLabel color with new draft token

packages/react/src/StateLabel/StateLabel.module.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,19 @@
6464
}
6565

6666
.StateLabel:where([data-status='draft']) {
67-
background-color: var(--bgColor-neutral-emphasis);
67+
/* stylelint-disable-next-line primer/colors */
68+
background-color: var(--bgColor-draft-emphasis, var(--bgColor-neutral-emphasis));
6869
color: var(--fgColor-onEmphasis);
69-
box-shadow: var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent);
70+
box-shadow: var(--boxShadow-thin, inset 0 0 0 1px)
71+
var(--borderColor-draft-emphasis, var(--borderColor-neutral-emphasis, transparent));
7072
}
7173

7274
.StateLabel:where([data-status='issueDraft']) {
73-
background-color: var(--bgColor-neutral-emphasis);
75+
/* stylelint-disable-next-line primer/colors */
76+
background-color: var(--bgColor-draft-emphasis, var(--bgColor-neutral-emphasis));
7477
color: var(--fgColor-onEmphasis);
75-
box-shadow: var(--boxShadow-thin, inset 0 0 0 1px) var(--borderColor-neutral-emphasis, transparent);
78+
box-shadow: var(--boxShadow-thin, inset 0 0 0 1px)
79+
var(--borderColor-draft-emphasis, var(--borderColor-neutral-emphasis, transparent));
7680
}
7781

7882
.StateLabel:where([data-status='unavailable']) {

0 commit comments

Comments
 (0)