Skip to content

Commit 3dd713b

Browse files
committed
Changed markup for use element in html template
1 parent 5706fd7 commit 3dd713b

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

templates/html/default.html

+19-19
Original file line numberDiff line numberDiff line change
@@ -57,38 +57,38 @@ <h1 class="t-capitalize t-fontGt t-mbHg"><%= options.name %></h1>
5757
<h2>Style</h2>
5858
</div>
5959
<p class="Grid-col t-width4of12">
60-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> fill
60+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> fill
6161
</p>
6262
<p class="Grid-col t-width4of12">
63-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> fill &amp; round
63+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> fill &amp; round
6464
</p>
6565
<p class="Grid-col t-width4of12">
66-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> fill &amp; circle
66+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> fill &amp; circle
6767
</p>
6868
<p class="Grid-col t-width4of12">
69-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> border &amp; circle
69+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> border &amp; circle
7070
</p>
7171
<p class="Grid-col t-width4of12">
72-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> border &amp; round
72+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> border &amp; round
7373
</p>
7474

7575
<div class="Grid-col t-widthFull">
7676
<h2>Size</h2>
7777
</div>
7878
<p class="Grid-col t-width3of12">
79-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %>" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> base
79+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %>" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> base
8080
</p>
8181
<p class="Grid-col t-width3of12">
82-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--2x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> 2x
82+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--2x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> 2x
8383
</p>
8484
<p class="Grid-col t-width3of12">
85-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--3x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> 3x
85+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--3x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> 3x
8686
</p>
8787
<p class="Grid-col t-width3of12">
88-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--4x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg> 4x
88+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--4x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg> 4x
8989
</p>
9090
<p class="Grid-col t-widthFull t-mtMd">
91-
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--full" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>"></use></svg>
91+
<svg viewBox="<%= icons[0].viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--full" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icons[0].name %>" /></svg>
9292
full
9393
</p>
9494
</div>
@@ -113,7 +113,7 @@ <h2 class="t-alignLeft t-gutter">SVG Sprite</h2>
113113
<% _.each(icons, function(icon) { %>
114114
<a class="card Grid-col t-widthHalf t-sm-width3of12 t-lg-width2of12 t-mbXl t-alignCenter" href="#modal-<%= icon.name %>">
115115
<div class="t-mbTn">
116-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--4x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg>
116+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--4x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg>
117117
</div>
118118
<span class="card-title"><%= options.prefix %>-<%= icon.name %></span>
119119
</a>
@@ -124,30 +124,30 @@ <h2 class="t-alignLeft t-gutter">SVG Sprite</h2>
124124
<div class="Grid Grid--middle">
125125
<div class="Grid-col t-widthFull">
126126
<p>
127-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--4x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg>
127+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--4x" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg>
128128
<span class="t-fontLg"><%= icon.name %></span>
129129
</p>
130130
</div>
131131

132132
<div class="Grid-col t-widthFull">
133133
<div class="Grid t-gutterReset t-mbMd">
134134
<p class="Grid-col t-sm-widthHalf">
135-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %>" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg> svg.<%= options.prefix %>
135+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %>" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg> svg.<%= options.prefix %>
136136
</p>
137137
<p class="Grid-col t-sm-widthHalf">
138-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg> svg.<%= options.prefix %>.<%= options.prefix %>--fill
138+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg> svg.<%= options.prefix %>.<%= options.prefix %>--fill
139139
</p>
140140
<p class="Grid-col t-sm-widthHalf">
141-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg> svg.<%= options.prefix %>.<%= options.prefix %>--fill.<%= options.prefix %>--round
141+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg> svg.<%= options.prefix %>.<%= options.prefix %>--fill.<%= options.prefix %>--round
142142
</p>
143143
<p class="Grid-col t-sm-widthHalf">
144-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg> svg.<%= options.prefix %>.<%= options.prefix %>--fill.<%= options.prefix %>--circle
144+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--fill <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg> svg.<%= options.prefix %>.<%= options.prefix %>--fill.<%= options.prefix %>--circle
145145
</p>
146146
<p class="Grid-col t-sm-widthHalf">
147-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg> svg.<%= options.prefix %>.<%= options.prefix %>--border.<%= options.prefix %>--circle
147+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--circle" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg> svg.<%= options.prefix %>.<%= options.prefix %>--border.<%= options.prefix %>--circle
148148
</p>
149149
<p class="Grid-col t-sm-widthHalf">
150-
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg> svg.<%= options.prefix %>.<%= options.prefix %>--border.<%= options.prefix %>--round
150+
<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %> <%= options.prefix %>--border <%= options.prefix %>--round" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg> svg.<%= options.prefix %>.<%= options.prefix %>--border.<%= options.prefix %>--round
151151
</p>
152152
</div>
153153
</div>
@@ -157,7 +157,7 @@ <h2 class="t-alignLeft t-gutter">SVG Sprite</h2>
157157
</div>
158158
<div class="Grid-col t-width6of12">
159159
<p>
160-
<input type="text" class="Input" value='<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %>" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>"></use></svg>'>
160+
<input type="text" class="Input" value='<svg viewBox="<%= icon.viewBox %>" class="<%= options.prefix %>" aria-hidden="true"><use xlink:href="#<%= options.prefix %>-<%= icon.name %>" /></svg>'>
161161
</p>
162162
</div>
163163

0 commit comments

Comments
 (0)