Skip to content

Commit

Permalink
Merge pull request #26 from sharetribe/fix-css-variable-warning
Browse files Browse the repository at this point in the history
Fix css variable warning
  • Loading branch information
Gnito authored Sep 25, 2024
2 parents 7acd49b + 20153ae commit 39e3910
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/react-scripts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sharetribe-scripts",
"version": "6.0.1",
"version": "6.0.2",
"description": "Fork of facebookincubator/[email protected] with some additional features. This is a major version update to CRA",
"repository": {
"type": "git",
Expand Down Expand Up @@ -31,8 +31,8 @@
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/plugin-transform-runtime": "7.12.1",
"@loadable/babel-plugin": "^5.13.2",
"@loadable/component": "^5.15.2",
"@loadable/babel-plugin": "^5.16.1",
"@loadable/component": "^5.16.4",
"@loadable/webpack-plugin": "^5.15.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
"@svgr/webpack": "^5.5.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-scripts/postcss/postcss-apply/visitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ class Visitor {
}

const setName = matches[2];
const { parent } = decl;
const { parent, value } = decl;

if (parent.selector !== ':root') {
if (value?.indexOf('{') === 0 && parent.selector !== ':root') {
decl.warn(
this.result,
'Custom property set ignored: not scoped to top-level `:root` ' +
Expand Down

0 comments on commit 39e3910

Please sign in to comment.