Skip to content

Commit d73deb8

Browse files
author
James Mejia
authored
Merge pull request #42 from uswds/cm-mc-additional-refinement
March MC: Additional refinement
2 parents 6bc7207 + a1e19d8 commit d73deb8

2 files changed

Lines changed: 17 additions & 4 deletions

File tree

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

Lines changed: 16 additions & 3 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;
@@ -84,7 +97,7 @@ <h3 class="step">Add stylesheet partial.</h3>
8497
Create a new stylesheet partial for our new component by entering the following in the free terminal window:
8598
</p>
8699
<div class="terminal">
87-
<pre>touch assets/css/components/_my-testimonial.scss</pre>
100+
<pre>touch _theme/components/_my-testimonial.scss</pre>
88101
</div>
89102
<p class="step-description">
90103
And then we'll import this new stylesheet into our USWDS custom styles.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 class="step">Create a custom stylesheet for our custom card component.</h3>
4040
Now let's add our new <strong>my-card</strong> stylesheet. It's standard naming convention to prefix SCSS partials with an underscore (as we've already seen in <strong>_uswds-theme</strong> and <strong>_uswds-theme-custom-styles</strong>).
4141
</p>
4242
<div class="terminal">
43-
<pre>touch assets/css/components/_my-card.scss</pre>
43+
<pre>touch _theme/components/_my-card.scss</pre>
4444
</div>
4545

4646
<h3 class="step">Import the new stylesheet into USWDS custom styles.</h3>

0 commit comments

Comments
 (0)