fix(scss): inline Popover styles from carbon-components v10.47 (#1139)

This commit is contained in:
metonym 2022-03-08 08:39:19 -08:00 committed by GitHub
commit cc7b30a620
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 336 additions and 6 deletions

View file

@ -5,6 +5,14 @@ const postcss = require("postcss");
const path = require("path");
(async () => {
const popover = fs.readFileSync(
"node_modules/carbon-components-10.47/src/components/popover/_popover.scss",
"utf-8"
);
const popover_mod = popover.replace(/..\/..\//g, "carbon-components/scss/");
fs.writeFileSync("css/_popover.scss", popover_mod);
const scss = fs
.readdirSync("css")
.filter((file) => file.endsWith(".scss"))