Skip to content

Commit 7c66f8a

Browse files
authored
fix(handlebars-demo): move and modify the icon files (#1377)
for pattern lab to both pick them up and copy them, as well as make them able to get referenced
1 parent cfa74c0 commit 7c66f8a

File tree

12 files changed

+12
-12
lines changed

12 files changed

+12
-12
lines changed

packages/starterkit-handlebars-demo/dist/_data/icons.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"iconPath" : "../../icons.svg",
2+
"iconPath" : "../../images/icons/",
33
"icon" : "search",
44
"icons" : [
55
{ "icon" : "minus" },

packages/starterkit-handlebars-demo/dist/_data/navigation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
{
3838
"label": false,
3939
"navIcon": {
40-
"iconPath": "../../icons.svg",
40+
"iconPath": "../../images/icons/",
4141
"navIcon": "shopping-cart"
4242
},
4343
"url" : "link.pages-cart"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<svg class="c-icon {{ styleModifier }}">
2-
<use href="{{ iconPath }}#{{ icon }}"></use>
2+
<use href="{{ iconPath }}{{ icon }}.svg#{{ icon }}"></use>
33
</svg><!--end c-icon-->

packages/starterkit-handlebars-demo/dist/_patterns/molecules/navigation/primary-nav.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{#if label }}{{ label }}{{/ if }}
1010
{{#with navIcon }}
1111
<svg class="c-icon c-primary-nav__icon">
12-
<use xlink:href="{{ iconPath }}#{{ navIcon }}"></use>
12+
<use xlink:href="{{ iconPath }}{{ navIcon }}.svg#{{ navIcon }}"></use>
1313
</svg>
1414
{{/ with }}
1515
</a><!--end c-primary-nav__link-->
Loading
Loading
Loading

0 commit comments

Comments
 (0)