Skip to content

Commit

Permalink
few more additions
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank committed Jun 14, 2023
1 parent 6bf0fd6 commit b77dd9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 7 additions & 0 deletions __tests__/no-deprecated-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ testRule({
line: 1,
column: 6
},
{
code: '.x { border: var(--borderWidth-thin) solid var(--color-border-default); }',
fixed: '.x { border: var(--borderWidth-thin) solid var(--borderColor-default); }',
message: `Variable --color-border-default is deprecated for property border. Please use the replacement --borderColor-default. (primer/no-deprecated-colors)`,
line: 1,
column: 6
},
{
code: '.x { border-color: var(--color-canvas-default-transparent); }',
fixed: '.x { border-color: var(--borderColor-transparent); }',
Expand Down
10 changes: 3 additions & 7 deletions plugins/lib/primitives-v8.json
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
],
"--color-avatar-border": [
{
"props": ["border", "background"],
"props": ["border", "background", "box-shadow"],
"replacement": "--avatar-borderColor"
}
],
Expand Down Expand Up @@ -859,11 +859,7 @@
],
"--color-canvas-default": [
{
"props": ["background"],
"replacement": "--bgColor-default"
},
{
"props": ["border", "box-shadow"],
"props": ["background", "border", "box-shadow", "fill"],
"replacement": "--bgColor-default"
}
],
Expand All @@ -887,7 +883,7 @@
],
"--color-border-default": [
{
"props": ["border", "background", "box-shadow"],
"props": ["border", "background", "box-shadow", "stroke"],
"replacement": "--borderColor-default"
}
],
Expand Down

0 comments on commit b77dd9d

Please sign in to comment.