Skip to content

Commit ebb573f

Browse files
authored
Update bg deprecations (#1661)
* Update bg deprecations * Update v18-migration.mdx * Create smooth-deers-accept.md
1 parent 5f7bb45 commit ebb573f

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.changeset/smooth-deers-accept.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Update bg deprecations

docs/content/support/v18-migration.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ See [color utility classes](/utilities/colors) for a list of all the functional
6262
| `.color-bg-primary` | `.color-bg-default` |
6363
| `.color-bg-secondary` | `.color-bg-subtle` |
6464
| `.color-bg-tertiary` | `.color-bg-subtle` |
65-
| `.color-bg-info` | `.color-bg-accent-subtle` |
65+
| `.color-bg-info` | `.color-bg-accent` |
6666
| `.color-bg-info-inverse` | `.color-bg-accent-emphasis` |
67-
| `.color-bg-danger` | `.color-bg-danger-subtle` |
67+
| `.color-bg-danger` | `.color-bg-danger` |
6868
| `.color-bg-danger-inverse` | `.color-bg-danger-emphasis` |
69-
| `.color-bg-success` | `.color-bg-success-subtle` |
69+
| `.color-bg-success` | `.color-bg-success` |
7070
| `.color-bg-success-inverse` | `.color-bg-success-emphasis` |
71-
| `.color-bg-warning` | `.color-bg-attention-subtle` |
71+
| `.color-bg-warning` | `.color-bg-attention` |
7272
| `.color-bg-warning-inverse` | `.color-bg-attention-emphasis` |
7373

7474
## Misc

src/deprecations.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
"color-bg-primary": "color-bg-default",
2929
"color-bg-secondary": "color-bg-subtle",
3030
"color-bg-tertiary": "color-bg-subtle",
31-
"color-bg-info": "color-bg-accent-subtle",
31+
"color-bg-info": "color-bg-accent",
3232
"color-bg-info-inverse": "color-bg-accent-emphasis",
33-
"color-bg-danger": "color-bg-danger-subtle",
33+
"color-bg-danger": "color-bg-danger",
3434
"color-bg-danger-inverse": "color-bg-danger-emphasis",
35-
"color-bg-success": "color-bg-success-subtle",
35+
"color-bg-success": "color-bg-success",
3636
"color-bg-success-inverse": "color-bg-success-emphasis",
37-
"color-bg-warning": "color-bg-attention-subtle",
37+
"color-bg-warning": "color-bg-attention",
3838
"color-bg-warning-inverse": "color-bg-attention-emphasis",
3939
"text-inherit": "color-fg-inherit",
4040
"centered": "mx-auto",

0 commit comments

Comments
 (0)