Skip to content

Commit 59b72d0

Browse files
authored
Merge pull request #75 from it-at-m/72-fix-style-exports
72 fix style exports
2 parents d502be1 + 10998a3 commit 59b72d0

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

docs/GettingStarted.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,29 @@ export default defineConfig({
3232
});
3333
```
3434

35-
In your Webcomponents root you should import the MDE5-CSS and SVG-Sprite for MDE5-Icons:
35+
In your Webcomponents root you should import the MDE5-CSS and SVG-Sprite for MDE5-Icons, as well as the optional custom-icons SVG-Sprite:
3636

3737
```html
3838
<script
3939
lang="ts"
4040
setup
4141
>
42-
import sprites from "@muenchen/muc-patternlab-vue/dist/assets/temporary/muc-icons.svg?raw";
42+
import mucIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/muc-icons.svg?raw";
43+
import customIconsSprite from "@muenchen/muc-patternlab-vue/dist/assets/temporary/custom-icons.svg?raw";
4344
</script>
4445

4546
<template>
4647
<div>
47-
<svg
48-
style="display: none;"
49-
v-html="sprites"
50-
></svg>
48+
<div v-html="mucIconsSprite"></div>
49+
<div v-html="customIconsSprite"></div>
5150
<...>
5251
</div>
5352
</template>
5453

5554
<style>
5655
@import "@muenchen/muc-patternlab-vue/dist/assets/temporary/muenchende-style.css";
5756
@import "@muenchen/muc-patternlab-vue/dist/assets/temporary/custom-style.css";
57+
@import "@muenchen/muc-patternlab-vue/dist/style.css";
5858
</style>
5959
```
6060

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@
2121
"types": "./dist/types/index.d.ts",
2222
"import": "./dist/muc-patternlab-vue.es.js"
2323
},
24-
"./dist/assets/temporary/muc-icons.svg": "./dist/assets/temporary/muc-icons.svg",
25-
"./dist/assets/temporary/custom-icons.svg": "./dist/assets/temporary/custom-icons.svg",
24+
"./dist/style.css": "./dist/style.css",
25+
"./dist/assets/temporary/custom-style.css": "./dist/assets/temporary/custom-style.css",
26+
"./dist/assets/temporary/muenchende-style.css": "./dist/assets/temporary/muenchende-style.css",
2627
"./dist/assets/temporary/muenchende-fontface.css": "./dist/assets/temporary/muenchende-fontface.css",
27-
"./dist/assets/temporary/muenchende-style.css": "./dist/assets/temporary/muenchende-style.css"
28+
"./dist/assets/temporary/muc-icons.svg": "./dist/assets/temporary/muc-icons.svg",
29+
"./dist/assets/temporary/custom-icons.svg": "./dist/assets/temporary/custom-icons.svg"
2830
},
2931
"files": [
3032
"src",

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { type App } from "vue";
22

33
import * as components from "./components";
44

5-
import "../public/assets/temporary/muenchende-style.css";
6-
75
function install(app: App) {
86
for (const key in components) {
97
// @ts-expect-error

0 commit comments

Comments
 (0)