Skip to content

Commit 421ac80

Browse files
author
James Mejia
committed
Consistent let's
1 parent d29e438 commit 421ac80

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ <h2><span>Part Three</span> Create a custom component</h2>
33
<p>In this section we'll explore extending USWDS by creating a custom <strong>testimonial</strong> component not offered by the design system.</p>
44
<h3 class="step">Create a the markup for a new component.</h3>
55
<p class="step-description">
6-
Visit <strong>_includes/sxs/02-extending/testimonial.html</strong>. This will be where we will add the markup for our new component. Once the markup is filled out, it will appear beneath our custom card component!
6+
Visit <strong>_includes/sxs/02-extending/testimonial.html</strong>. This will be where we'll add the markup for our new component. Once the markup is added, it will appear under our custom card component!
77
</p>
88
<p class="step-description">
9-
Start by adding the basic skeleton of the component. We'll need an outer div, a body, and footer section. We'll call this component <strong>ut-testimonial</strong>.
9+
Start by adding the basic skeleton of the component. Similar to card, we'll need an outer div, a body, and footer section. We'll call this component <strong>ut-testimonial</strong>.
1010
</p>
1111
<div class="editor">
1212
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/sxs/02-extending/testimonial.html</h4>
@@ -18,7 +18,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
1818
</pre>
1919
</div>
2020
<p class="step-description">
21-
Now lets add a quote to our testimonial body.
21+
Now let's add a quote to our testimonial body.
2222
</p>
2323
<div class="editor">
2424
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/sxs/02-extending/testimonial.html</h4>
@@ -33,7 +33,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
3333
</pre>
3434
</div>
3535
<p class="step-description">
36-
Now lets create a profile section which will feature a profile picture, name, and title.
36+
Now let's create a profile section which will feature a profile picture, name, and title.
3737
</p>
3838
<div class="editor">
3939
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/sxs/02-extending/testimonial.html</h4>
@@ -49,7 +49,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
4949
<pre class="blur">&lt;/div&gt;</pre>
5050
</div>
5151
<p class="step-description">
52-
Lastly, lets add a quotation icon for some visual flare! Visit the <a href="https://designsystem.digital.gov/components/icon/">Icon component</a> page, search for <strong>quote</strong>, and click the search result to copy the icons markup. Paste this markup directly after the opening <strong>ut-testimonial</strong> div.
52+
Lastly, let's add a quotation icon for some visual flare! Visit the <a href="https://designsystem.digital.gov/components/icon/">Icon component</a> page, search for <strong>quote</strong>, and click the search result to copy the icons markup. Paste this markup directly after the opening <strong>ut-testimonial</strong> div.
5353
</p>
5454
<div class="editor">
5555
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/sxs/02-extending/testimonial.html</h4>
@@ -122,7 +122,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
122122
</p>
123123
<h3 class="step">Styling the testimonial icon.</h3>
124124
<p class="step-description">
125-
USWDS uses variables to maintain consistent styles across different definitions. Lets create a variable for our icon stroke and fill at the top of our stylesheet.
125+
USWDS uses variables to maintain consistent styles across different definitions. let's create a variable for our icon stroke and fill at the top of our stylesheet.
126126
</p>
127127
<div class="editor">
128128
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/ut-testimonial.scss</h4>
@@ -159,7 +159,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
159159
</div>
160160
<h3 class="step">Using USWDS theme tokens with mixins.</h3>
161161
<p class="step-description">
162-
Finally, lets use a combination of utility mixins and uswds theme settings to display how you can add uniformity across your project! In this example, we'll add the border settings from step one to help our new component sit nicely with the original card.
162+
Finally, let's use a combination of utility mixins and uswds theme settings to display how you can add uniformity across your project! In this example, we'll add the border settings from step one to help our new component sit nicely with the original card.
163163
</p>
164164
<div class="editor">
165165
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/ut-testimonial.scss</h4>

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h3 class="step">Add a custom class for our new variant.</h3>
88
We'll use this class to identify our custom card component and assign custom styles.
99
</p>
1010
<p class="step-description">
11-
When adding custom classes we recommend using a two to three letter prefix to identify the organization it belongs to. USWDS primarily uses <strong>usa-</strong>. Since this is a <strong>U</strong>SWDS <strong>T</strong>utorial, lets use <strong>ut-</strong>card as our custom class.
11+
When adding custom classes we recommend using a two to three letter prefix to identify the organization it belongs to. USWDS primarily uses <strong>usa-</strong>. Since this is a <strong>U</strong>SWDS <strong>T</strong>utorial, let's use <strong>ut-</strong>card as our custom class.
1212
</p>
1313
<div class="editor">
1414
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> _includes/sxs/02-extending/card.html</h4>
@@ -19,13 +19,13 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
1919
</div>
2020
<h3 class="step">Create a custom stylesheet for our custom card component.</h3>
2121
<p class="step-description">
22-
To help keep things organized, we'll create a custom stylesheet with styles specific to our customized card component. In later exercises, we'll use this same stylesheet to extend the card component into a new custom component. First, lets add a <strong>components</strong> directory to our css assets.
22+
To help keep things organized, we'll create a custom stylesheet with styles specific to our customized card component. In later exercises, we'll use this same stylesheet to extend the card component into a new custom component. First, let's add a <strong>components</strong> directory to our css assets.
2323
</p>
2424
<div class="terminal">
2525
<pre>mkdir assets/css/components</pre>
2626
</div>
2727
<p class="step-description">
28-
This pattern will allow us to organize CSS partials an a logical structure. Let's now add our new <strong>ut-card</strong> stylesheet. It's standard naming convention to prefix CSS partials with an underscore.
28+
This pattern will allow us to organize CSS partials in a logical structure. Let's now add our new <strong>ut-card</strong> stylesheet. It's standard naming convention to prefix CSS partials with an underscore.
2929
</p>
3030
<div class="terminal">
3131
<pre>touch assets/css/components/_ut-card.scss</pre>
@@ -45,18 +45,18 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
4545
</p>
4646
<h3 class="step">Use USWDS utilities in custom styles.</h3>
4747
<p class="step-description">
48-
Now that our stylesheet is being imported, lets write some customs styles to really make this card stand out!
48+
Now that our stylesheet is being imported, let's write some custom styles to really make this card stand out!
4949
</p>
5050
<p class="step-description">
51-
We'll want to use USWDS design tokens in our stylesheets using USWDS 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.
51+
We'll want to use USWDS design tokens in our stylesheets using USWDS functions and mixins. To do this, let's add <strong>uswds-core</strong> to the top of our new stylesheet with the <strong>use</strong> Sass directive.
5252
</p>
5353
<div class="editor">
5454
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/_ut-card.scss</h4>
5555
<pre class="add">@use "uswds-core" as *;</pre>
5656
</div>
5757
<h3 class="step">Add custom class and styles.</h3>
5858
<p class="step-description">
59-
Next lets create a custom class for our personalized component and use some USWDS utilities. We'll start by updating the background color of the card. We can use the <a href="https://designsystem.digital.gov/design-tokens/color/system-tokens/#using-color-tokens-2"><strong>color()</strong> function</a> to set the text and background color with USWDS <a href="https://designsystem.digital.gov/design-tokens/color/overview/">color tokens</a>.
59+
Next let's create a custom class for our personalized component and use some USWDS utilities. We'll start by updating the background color of the card. We can use the <a href="https://designsystem.digital.gov/design-tokens/color/system-tokens/#using-color-tokens-2"><strong>color()</strong> function</a> to set the text and background color with USWDS <a href="https://designsystem.digital.gov/design-tokens/color/overview/">color tokens</a>.
6060
</p>
6161
<div class="editor">
6262
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/ut-card.scss</h4>
@@ -83,7 +83,7 @@ <h4 class="filename"><span class="material-icons" aria-hidden="true">description
8383
<pre class="blur">}</pre>
8484
</div>
8585
<p class="step-description">
86-
If you inspect the compilation messages in the terminal, you'll actually see a warning these colors do not pass color contrast requirements! Lets use the magic number of 50+ to resolve this issue.
86+
If you inspect the compilation messages in the terminal, you'll actually see a warning. These colors don't pass color contrast requirements! let's use the magic number of 50+ to resolve this issue.
8787
</p>
8888
<div class="editor">
8989
<h4 class="filename"><span class="material-icons" aria-hidden="true">description</span> assets/css/components/ut-card.scss</h4>

0 commit comments

Comments
 (0)