mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
fix(scss): inline Popover
styles from carbon-components v10.47 (#1139)
This commit is contained in:
parent
5de0d9a357
commit
cc7b30a620
8 changed files with 336 additions and 6 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue