Skip to content

Commit ade34c5

Browse files
committed
stop using svg-jar
1 parent 3f7a9a4 commit ade34c5

29 files changed

+268
-1001
lines changed

addon/components/es-card-content.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{!-- Bug link: https://github.com/ember-template-lint/ember-template-lint/issues/1286 --}}
33

44
{{#if @icon}}
5-
{{svg-jar @icon class="card__icon" width="60px"}}
5+
<EsIcon @icon={{@icon}} class="card__icon" width="60px" />
66
{{/if}}
77

88
{{#if @image}}

addon/components/es-footer-contributions.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="sponsor-icons">
55
{{#each @contributorLinks as |link|}}
66
<a href={{link.href}} title={{link.title}} aria-label={{link.title}} class="mr-2">
7-
{{svg-jar link.class class="footer-contributor-logo"}}
7+
<EsIcon @icon={{link.class}} @class="footer-contributor-logo" />
88
</a>
99
{{/each}}
1010
</div>

addon/components/es-footer-info.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="footer-social hide-on-mobile">
1313
{{#each @socialLinks as |link|}}
1414
<a href={{link.href}} title={{link.title}} aria-label={{link.label}} rel="me">
15-
{{svg-jar link.class}} {{link.title}}
15+
<EsIcon @icon={{link.class}} /> {{link.title}}
1616
</a>
1717
{{/each}}
1818
</div>

addon/components/es-footer-statement.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{@tagline}}
66
{{#if @contributeLink}}
77
<br>
8-
<a href={{@contributeLink}}>Contribute to this page {{svg-jar 'external-link'}}</a>
8+
<a href={{@contributeLink}}>Contribute to this page <EsIcon @icon="external-link" /></a>
99
{{/if}}
1010
</p>
1111
</div>

addon/components/es-icon.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{{{this.icon}}}

addon/components/es-icon.js

Lines changed: 108 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

addon/components/es-sidebar.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
@type="button"
77
@onClicked={{this.close}}
88
>
9-
{{svg-jar "close-icon"}}
9+
<svg width="36" height="36" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><path d="M12.343 10.929L18 16.585l5.657-5.656a1 1 0 011.414 1.414L19.415 18l5.656 5.657a1 1 0 01-1.414 1.414L18 19.415l-5.657 5.656a1 1 0 01-1.414-1.414L16.585 18l-5.656-5.657a1 1 0 011.414-1.414z" fill="#FFF" fill-rule="evenodd"/></svg>
1010
</EsButton>
1111
<div class="es-sidebar-content">
1212
{{yield}}
@@ -19,5 +19,5 @@
1919
@type="button"
2020
@onClicked={{this.toggle}}
2121
>
22-
{{svg-jar "sidebar-icon" aria-hidden="true"}}
22+
<svg aria-hidden="true" width="36" height="36" viewBox="0 0 36 36" xmlns="http://www.w3.org/2000/svg"><g fill="#FFF" fill-rule="evenodd"><path d="M28 24.5a1 1 0 010 2H13a1 1 0 010-2h15zm0-7a1 1 0 010 2H13a1 1 0 010-2h15zm0-7a1 1 0 010 2H13a1 1 0 010-2h15zM9 24a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm0-7a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm0-7a1.5 1.5 0 110 3 1.5 1.5 0 010-3z"/></g></svg>
2323
</EsButton>

app/components/es-icon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from 'ember-styleguide/components/es-icon';

0 commit comments

Comments
 (0)