Skip to content

Commit 71e57d8

Browse files
committed
Merge branch 'master' of https://github.com/GSA/sam-styles
2 parents 21817dd + 6535f15 commit 71e57d8

15 files changed

Lines changed: 219 additions & 117 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ npm start
1212

1313
Then, visit [http://localhost:3000/](http://localhost:3000/) to see sam-styles in action.
1414

15-
_**Optional**: To re-build when CSS changes are made, run the following command from the project directory in a separate terminal window:_
15+
To re-build when CSS changes are made, run the following command from the project directory in a separate terminal window:
1616
```sh
17-
npm run watch
17+
npm run prod
1818
```

src/components/_navigation/_nav-primary.njk renamed to src/components/08-navigation/_nav-primary.njk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<button class="usa-nav__close"><img src="{{ uswds.path }}/img/close.svg" alt="close"></button>
1+
<button class="usa-nav__close"><img src="{{ '/dist/img/close.svg' | path }}" alt="close"></button>
22
<ul class="usa-nav__primary usa-accordion">
33
{%- for link in nav.links -%}
44
<li class="usa-nav__primary-item">
File renamed without changes.

src/components/_navigation/nav-primary.config.yml renamed to src/components/08-navigation/nav-primary.config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
label: Primary (header)
2+
# preview: '@uswds-header'
23

34
context:
45
nav:
6+
search: false
57
links:
68
- text: Current section
79
is_current: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
label: Secondary (header)
2+
# preview: '@uswds-header'
23

34
context:
45
nav:
6+
search: true
57
links:
68
- text: Secondary link
79
- text: Another secondary link
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{%- macro nav_list(links, subclass) -%}
22
{%- for item in links -%}
3-
<li class="usa-sidenav-item">
3+
<li class="usa-sidenav__item">
44
<a href="{{ item.href }}"{% if item.current %} class="usa-current"{% endif %}>{{ item.text }}</a>
55
{%- if item.links -%}
66
<ul class="{{ subclass }}">
@@ -13,6 +13,6 @@
1313

1414
<nav>
1515
<ul class="usa-sidenav">
16-
{{ nav_list(sidenav.links, 'usa-sidenav-sublist') }}
16+
{{ nav_list(sidenav.links, 'usa-sidenav__sublist') }}
1717
</ul>
1818
</nav>
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
<h3>Chip</h3>
2-
31
<span class="{{ label.classes }}">Normal</span>
42

5-
<span class="sam label">
6-
Normal with icon
7-
<button class="sam button tertiary">
3+
<span class="sam-tag sam-tag--chip">
4+
Normal with close icon
5+
<button class="sam-tag__close">
86
<span class="fas fa-times" aria-hidden="true"></span>
97
</button>
108
</span>

0 commit comments

Comments
 (0)