Skip to content

Commit 7189d9f

Browse files
committed
Add postcss-import plugin for postcss check + fix warning (#6691)
* Add postcss-import plugin for postcss check + fix warning * Update etalons * Remove test:dev
1 parent 5828b8f commit 7189d9f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

packages/survey-creator-core/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test": "jest",
1515
"test:cov": "jest --coverage",
1616
"test:dev": "jest --watch",
17-
"test:postcss": "postcss build/survey-creator-core.css --silent -u postcss-calc -u autoprefixer -u postcss-fail-on-warn -o survey-creator-core.postcss.css && rimraf survey-creator-core.postcss.css",
17+
"test:postcss": "postcss build/survey-creator-core.css --silent -u postcss-calc -u autoprefixer -u postcss-fail-on-warn -u postcss-import -o survey-creator-core.postcss.css && rimraf survey-creator-core.postcss.css",
1818
"doc_gen": "node doc_generator/editor_docgenerator.js src/entries/index.ts",
1919
"watch": "webpack --env buildType=dev --watch",
2020
"watch:dev": "webpack --env buildType=dev --watch",
@@ -58,6 +58,7 @@
5858
"postcss-calc": "9.0.1",
5959
"postcss-cli": "10.1.0",
6060
"postcss-fail-on-warn": "0.2.1",
61+
"postcss-import": "^16.1.0",
6162
"puppeteer": "^1.19.0",
6263
"qunitjs": "2.2.0",
6364
"replace-in-file": "^3.4.3",
@@ -93,4 +94,4 @@
9394
"tag": true
9495
}
9596
}
96-
}
97+
}

packages/survey-creator-core/src/components/toolbox/toolbox-tool.scss

-5
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,6 @@
392392
padding-inline-end: var(--ctr-toolbox-item-padding-right-no-text, calcSize(1));
393393
box-sizing: border-box;
394394
align-self: flex-start;
395-
&:after {
396-
content:"\a0";
397-
@include ctrSmallBoldFont;
398-
width: 0;
399-
}
400395
}
401396
.svc-toolbox__tool--dots {
402397
padding-inline-end: 0;

0 commit comments

Comments
 (0)