Skip to content

Commit 480366b

Browse files
authored
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 bfb4a18 commit 480366b

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

packages/survey-creator-core/package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"test": "jest",
1616
"test:cov": "jest --coverage",
1717
"test:watch": "jest --watch",
18-
"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",
18+
"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",
1919
"doc_gen": "node doc_generator/editor_docgenerator.js src/entries/index.ts",
2020
"watch:dev": "concurrently \"webpack --env buildType=dev --watch --env emitDeclarations --env emitStyles\" \"rollup -c -w\" ",
2121
"watch:prod": "webpack --env buildType=prod --watch",
@@ -55,6 +55,7 @@
5555
"postcss-calc": "9.0.1",
5656
"postcss-cli": "10.1.0",
5757
"postcss-fail-on-warn": "0.2.1",
58+
"postcss-import": "^16.1.0",
5859
"rimraf": "2.5.4",
5960
"rollup": "^4.34.8",
6061
"rollup-plugin-license": "^3.6.0",
@@ -75,4 +76,4 @@
7576
"webpack-merge": "^5.8.0",
7677
"webpack-remove-empty-scripts": "^1.0.4"
7778
}
78-
}
79+
}

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

-5
Original file line numberDiff line numberDiff line change
@@ -426,11 +426,6 @@
426426
padding-inline-end: var(--ctr-toolbox-item-padding-right-no-text, var(--sjs-spacing-x1));
427427
box-sizing: border-box;
428428
align-self: flex-start;
429-
&:after {
430-
content:"\a0";
431-
@include ctrSmallBoldFont;
432-
width: 0;
433-
}
434429
}
435430
.svc-toolbox__tool--dots {
436431
padding-inline-end: 0;
Loading

0 commit comments

Comments
 (0)