Skip to content

Commit c0177f5

Browse files
committed
Step 3 instructions: Add svg class, width, and height instrucitons
1 parent 7014003 commit c0177f5

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

_includes/sxs/02-extending/part-three.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,23 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
5454
<div class="editor">
5555
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/testimonial.html</h4>
5656
<pre class="blur">&lt;div class="my-testimonial"&gt;</pre>
57-
<pre class="add"> &lt;svg class="usa-icon my-testimonial__icon" aria-hidden="true" focusable="false" role="img"&gt;
57+
<pre class="add"> &lt;svg class="usa-icon" aria-hidden="true" focusable="false" role="img"&gt;
5858
&lt;use xlink:href="/assets/img/sprite.svg#format_quote"&gt;
5959
&lt;/use&gt;
6060
&lt;/svg&gt;</pre><pre class="blur">&lt;div class="my-testimonial__body"&gt;
61+
...</pre>
62+
</div>
63+
<p class="step-description">
64+
Next, add a class to the svg element for styling later, as well as height and width attributes to natively define the size of the icon.
65+
</p>
66+
<div class="editor">
67+
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/testimonial.html</h4>
68+
<pre class="blur">&lt;div class="my-testimonial"&gt;</pre>
69+
<pre class="remove"> &lt;svg class="usa-icon" aria-hidden="true" focusable="false" role="img"&gt;</pre>
70+
<pre class="add"> &lt;svg class="usa-icon my-testimonial__icon" height="50px" width="50px" aria-hidden="true" focusable="false" role="img"&gt;</pre>
71+
<pre class="blur"> &lt;use xlink:href="/assets/img/sprite.svg#format_quote"&gt;
72+
&lt;/use&gt;
73+
&lt;/svg&gt&lt;div class="my-testimonial__body"&gt;
6174
...</pre>
6275
</div>
6376
<p class="step-description">
@@ -66,7 +79,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
6679
<div class="editor">
6780
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/testimonial.html</h4>
6881
<pre class="blur">&lt;div class="my-testimonial"&gt;
69-
&lt;svg class="usa-icon my-testimonial__icon" aria-hidden="true" focusable="false" role="img"&gt;</pre><pre class="remove">
82+
&lt;svg class="usa-icon my-testimonial__icon" height="50px" width="50px" aria-hidden="true" focusable="false" role="img"&gt;</pre><pre class="remove">
7083
&lt;use xlink:href="/assets/img/sprite.svg#format_quote"&gt;</pre><pre class="add">
7184
&lt;use xlink:href="/assets/uswds/img/sprite.svg#format_quote"&gt;</pre><pre class="blur">
7285
&lt;/use&gt;

0 commit comments

Comments
 (0)