Skip to content

Commit 7014003

Browse files
author
James Mejia
authored
Merge pull request #41 from uswds/jm-more-edits
Extending: more edits
2 parents c18c86f + cb462fe commit 7014003

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
8181

8282
<h3 class="step">Add stylesheet partial.</h3>
8383
<p class="step-description">
84-
Create a new stylesheet partial for our new component by entering the following in the free temrinal window:
84+
Create a new stylesheet partial for our new component by entering the following in the free terminal window:
8585
</p>
8686
<div class="terminal">
8787
<pre>touch assets/css/components/_my-testimonial.scss</pre>
@@ -93,12 +93,12 @@ <h3 class="step">Add stylesheet partial.</h3>
9393
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _theme/_uswds-theme-custom-styles.scss</h4>
9494
<pre class="blur">@use "uswds-core" as *;
9595
@forward "../assets/css/styles.scss";
96-
@forward "../assets/css/_my-card.scss";
97-
</pre><pre class="add">@forward "../assets/css/_my-testimonial.scss";</pre>
96+
@forward "../_theme/components/_my-card.scss";
97+
</pre><pre class="add">@forward "../_theme/components/_my-testimonial.scss";</pre>
9898
</div>
9999
<h3 class="step">Start styling the component.</h3>
100100
<p class="step-description">
101-
Just like using the <strong>color()</strong> function to use USWDS color tokens, we can use <strong>units()</strong> and other token functions to use USWDS tokens in native CSS properties. To get our base styles for our new component, add the following styles to the new stylesheet:
101+
Just like using the <strong>color()</strong> function to use USWDS color tokens, we can use <strong>units()</strong> and other token functions to use tokens in native CSS properties. To get our base styles for our new component, add the following styles to the new stylesheet:
102102
</p>
103103
<div class="editor">
104104
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/_my-testimonial.scss</h4>
@@ -140,7 +140,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
140140
.my-testimonial__profile-title {
141141
font-size: font-size("body", 5);
142142
margin-top: units(0);
143-
}
143+
}
144144
</pre>
145145
</div>
146146
<p class="step-description">

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
2020

2121
<h3 class="step">Open a new terminal window.</h3>
2222
<p class="step-description">
23-
At this point you should already have two terminal windows open. One is serving our site and the other is compiling our stylesheets. We're going to open one more so we can add a couple new files.
23+
At this point you should already have two terminal windows open. One is serving our site and the other is compiling our stylesheets. We're going to open one more so we can add a couple new files.
2424
</p>
2525
<p class="step-description">
2626
Open a new terminal window and navigate to the tutorial's root directory, as before. In the following example, change <strong>path/to/uswds-tutorial</strong> to the actual path.
@@ -37,7 +37,7 @@ <h3 class="step">Create a custom stylesheet for our custom card component.</h3>
3737
<pre>mkdir _theme/components</pre>
3838
</div>
3939
<p class="step-description">
40-
Now let's add our new <strong>my-card</strong> stylesheet. It's standard naming convention to prefix CSS partials with an underscore (as we've already seen in <strong>_uswds-theme</strong> and <strong>_uswds-theme-custom-styles</strong>).
40+
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">
4343
<pre>touch assets/css/components/_my-card.scss</pre>
@@ -50,19 +50,19 @@ <h3 class="step">Import the new stylesheet into USWDS custom styles.</h3>
5050
<div class="editor">
5151
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _theme/_uswds-theme-custom-styles.scss</h4>
5252
<pre class="blur">@use "uswds-core" as *;
53-
@forward "../assets/css/styles.scss";
54-
</pre><pre class="add">@forward "../assets/css/_my-card.scss";</pre>
53+
@forward "../assets/css/styles.scss";
54+
</pre><pre class="add">@forward "../_theme/components/_my-card.scss";</pre>
5555
</div>
5656
<p class="step-description">
5757
Once you've updated this file, you can save and close it. Since we've added our project Sass source directory to our gulpfile in the first part of the tutorial, it should already be compiling correctly!
5858
</p>
5959
<p class="step-description">
60-
Now that our stylesheet is being imported, lets write some customs styles to finish up our card.
60+
Now that our stylesheet is being imported, lets write some customs styles to finish up our card.
6161
</p>
6262

6363
<h3 class="step">Use USWDS core features in custom styles.</h3>
6464
<p class="step-description">
65-
We'll want to use USWDS design tokens in our stylesheets using USWDS stylesheet features like functions and mixins. To do this, lets add <strong>uswds-core</strong> to the top of our new stylesheet with the <strong>use</strong> Sass directive.
65+
We'll want to use USWDS design tokens in our stylesheets using USWDS style features like functions and mixins. To do this, lets add <strong>uswds-core</strong> to the top of our new stylesheet with the <strong>use</strong> Sass directive.
6666
</p>
6767
<div class="editor">
6868
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/_my-card.scss</h4>
@@ -97,7 +97,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
9797
}</pre>
9898
</div>
9999
<p class="step-description">
100-
Now we're making progress. This component is looking pretty good.
100+
Now we're making progress. This component is looking pretty good.
101101
</p>
102102
<p class="step-description">In our next section, we'll take a look at using everything USWDS has to offer to create a custom component!</p>
103103
</section>

0 commit comments

Comments
 (0)