Skip to content

Commit c9288ff

Browse files
authored
Revert "chore: scope theming variables used in illustrations (#12687)" (#12770)
This reverts commit 48c077c.
1 parent 71ceeda commit c9288ff

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

packages/tools/lib/create-illustrations/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const fs = require("fs").promises;
22
const path = require("path");
3-
const { scopeThemingVariables } = require("../css-processors/scope-variables.mjs");
43

54
const generate = async (argv) => {
65
if (argv.length < 7) {
@@ -92,7 +91,7 @@ const generate = async (argv) => {
9291
console.log(`Generating illustrations from ${srcPath} to ${destPath}`)
9392

9493
const svgImportTemplate = svgContent => {
95-
return `export default \`${scopeThemingVariables(svgContent)}\`;`
94+
return `export default \`${svgContent}\`;`
9695
};
9796
const svgToJs = async fileName => {
9897
const svg = await fs.readFile(path.join(srcPath, fileName), { encoding: "utf-8" });

packages/tools/lib/css-processors/scope-variables.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ const scopeUi5Variables = (cssText, packageJSON, inputFile) => {
4545
return newText.replaceAll("--sap", `--ui5-sap`);
4646
}
4747

48-
// Used with CSS text and SVG file content (illustrations)
4948
const scopeThemingVariables = (cssText) => {
5049
return cssText.replaceAll("--sap", `--ui5-sap`);
5150
}

0 commit comments

Comments
 (0)