Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.12.0 #4236

Merged
merged 304 commits into from Jun 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
6199d15
escaping
scottqueen-bixal Apr 12, 2021
ad56538
updated our patch policy
scottqueen-bixal Apr 12, 2021
d01d6bf
trying to update our policy again
scottqueen-bixal Apr 12, 2021
514d41c
moves our event to the change listener for fileInputOnly
scottqueen-bixal Apr 12, 2021
503e275
updates opacity
scottqueen-bixal Apr 15, 2021
119864b
Use unique IDs in breadcrumb
thisisdano Apr 19, 2021
5b2f3eb
Use unique aria-labels for banners
thisisdano Apr 19, 2021
8ff46c2
Use unique aria labels for footer
thisisdano Apr 19, 2021
e712dc2
Add unique labels for identifier
thisisdano Apr 19, 2021
06a245e
Use h3 for list headings
thisisdano Apr 19, 2021
8d18b21
move to change listener and add file check and logic gate
scottqueen-bixal Apr 20, 2021
cbe75ac
Use underscore hack to provide unique labels
thisisdano Apr 20, 2021
09a3674
Use underscore hack for footer labels
thisisdano Apr 20, 2021
5492783
resets the check on accepted formats
scottqueen-bixal Apr 22, 2021
4d8ab12
removing file validation from drop listener
scottqueen-bixal Apr 22, 2021
1eafe55
start at setting up a file input validation check with mocked files
scottqueen-bixal Apr 22, 2021
1e24bab
Merge branch 'develop' of github.com:uswds/uswds into jm-develop-remo…
mejiaj Apr 26, 2021
3da9b49
Merge branch 'develop' of github.com:uswds/uswds into jm-add-pagination
mejiaj Apr 27, 2021
1fab2e0
Merge branch 'develop' of github.com:uswds/uswds into jm-develop-remo…
mejiaj Apr 27, 2021
f1dad5c
Merge pull request #4174 from uswds/main
thisisdano Apr 28, 2021
fc1cd34
Sync latest changes from pagination.
mejiaj Apr 28, 2021
0cc200b
Add correct translation to default Spanish variant.
mejiaj Apr 28, 2021
d908b6f
Use standard name for Spanish variant.
mejiaj Apr 28, 2021
1ab1d78
Add prettier task for rendered templates.
mejiaj Apr 29, 2021
df39d46
Fix markup errors so prettier runs properly.
mejiaj Apr 29, 2021
0ceb799
Add font family setting to get proper display on Site.
mejiaj Apr 29, 2021
77329e6
Alignment fixes.
mejiaj Apr 29, 2021
f70c345
Fix chromium whitespace bug on Previous link.
mejiaj Apr 29, 2021
84795f6
Add class to separate infinite variant.
mejiaj Apr 29, 2021
651e179
Remove unused color variable.
mejiaj Apr 29, 2021
a0592b6
Move first and last logic to a variable; add aria-disabled to arrow.
mejiaj Apr 29, 2021
e6479a2
Create axe exclude class; add to pagination section dark.
mejiaj Apr 30, 2021
d105b99
Move axe exclude class to rules.
mejiaj Apr 30, 2021
4d5d87b
Simplify exclude selector.
mejiaj Apr 30, 2021
55dcce8
Remove pagination on dark section.
mejiaj Apr 30, 2021
13a7bed
Create process list package.
mejiaj Apr 30, 2021
8306942
use top margin on radio tile
maya Apr 30, 2021
f21ed18
update success dark to vivid variant
maya May 1, 2021
8e0044c
Create Spanish base template.
mejiaj May 3, 2021
2d1ab75
Create Spanish 404 variant.
mejiaj May 3, 2021
d4f8fd9
Uncomment support text.
mejiaj May 3, 2021
0434d1d
Site title: cleanup logo link attrs and add variable for menu button.
mejiaj May 4, 2021
927c62b
Templatize footer component.
mejiaj May 4, 2021
0e4bb9f
Footer: update primary and secondary link text.
mejiaj May 4, 2021
0c84e97
Header: fix markup displaying in site title.
mejiaj May 4, 2021
302c32f
Header: add aria label variable to template.
mejiaj May 5, 2021
9a69208
Escape site title variable.
mejiaj May 5, 2021
009e72b
Move navigation variants into their own folders.
mejiaj May 5, 2021
6724a11
Primary nav: separate megamenu markup and create primaryLink macro.
mejiaj May 5, 2021
8585a83
Disallow setting background for page buttons
thisisdano May 5, 2021
74ef552
Underline on hover to be more clear
thisisdano May 5, 2021
63ec265
Hide redundant functionality on mobile view
thisisdano May 5, 2021
3b1c5d4
Current page should not be a link
thisisdano May 5, 2021
2330dc2
Reduce visual weight of ellipsis
thisisdano May 5, 2021
abfd4d2
Use background color for current-page text
thisisdano May 5, 2021
909844c
Reduce number of settings
thisisdano May 5, 2021
26268cc
Add Spanish title variant.
mejiaj May 6, 2021
ac7b7e4
Search: cleanup templates.
mejiaj May 6, 2021
825c2eb
Create Spanish secondary nav.
mejiaj May 6, 2021
bec6aa9
Create Spanish nav variation.
mejiaj May 6, 2021
f6aec9e
Add Spanish header variations.
mejiaj May 6, 2021
938ee93
Update base spanish template.
mejiaj May 6, 2021
c942cf0
Use a less obtrusive button border and simplify hover
thisisdano May 6, 2021
2dd162d
Add id_prefix if it exists to search input modifier.
mejiaj May 6, 2021
3ad17dc
Navigation: set default language and pass search prefix for a11y.
mejiaj May 6, 2021
7d97c50
Banner: add aria label var to banner.
mejiaj May 7, 2021
f7fa83b
Title: remove aria label and only set Menu text in Spanish.
mejiaj May 7, 2021
56b8ba7
Footer: update placeholder content and create contact object.
mejiaj May 7, 2021
a72de62
Identifier: add brackets to identifier domain.
mejiaj May 7, 2021
a4cbeac
Error page: add spanish return to top link in footer.
mejiaj May 7, 2021
49e5718
Primary nav updates.
mejiaj May 7, 2021
8a7ee5c
Secondary nav: update placeholder text.
mejiaj May 7, 2021
74474ad
Error page: update agency example link.
mejiaj May 7, 2021
9c59fa9
Error page: update placeholder phone number.
mejiaj May 7, 2021
60ef94b
Create missing usa-link component package.
mejiaj May 7, 2021
3a23b3a
Use unique aria labels
thisisdano May 11, 2021
424d7ab
Merge branch 'develop' of github.com:uswds/uswds into gsq-avoid-es201…
scottqueen-bixal May 12, 2021
6ace906
Use proper heading levels
thisisdano May 12, 2021
bc192a3
pulls in a test template, adds mock files to filelist
scottqueen-bixal May 12, 2021
cca6bc0
Use unique aria labels
thisisdano May 12, 2021
941d7ef
includes onchange event for input gate
scottqueen-bixal May 12, 2021
b10c786
Remove complementary role
thisisdano May 12, 2021
228d2e0
eslint and code comment cleanup
scottqueen-bixal May 12, 2021
b907286
Allow keyboard focus on scrollable tables
thisisdano May 12, 2021
ef048c0
Use void links
thisisdano May 13, 2021
d952987
Fix download links
thisisdano May 13, 2021
c1068ca
Use void in button-group links
thisisdano May 13, 2021
4c6086f
Merge branch 'develop' of github.com:uswds/uswds into gsq-lightens-ba…
scottqueen-bixal May 13, 2021
70cc3d1
updated to align more with modal overlay
scottqueen-bixal May 13, 2021
06e9b43
Add component paths to package.json exports
kmonahan May 13, 2021
4c67464
cleans up linting error
scottqueen-bixal May 14, 2021
a8a36df
includes prettier in our mocha env
scottqueen-bixal May 14, 2021
67bc41c
replaces includes
scottqueen-bixal May 14, 2021
853c2eb
helper function for includes that we want to work also in IE
scottqueen-bixal May 14, 2021
61e59f9
moves event bind to arrow function, lint clean up
scottqueen-bixal May 14, 2021
a747ff5
lint fixes
scottqueen-bixal May 14, 2021
7565b6b
jsdoc updates
scottqueen-bixal May 14, 2021
6186fcc
Add new success color to theme file and update success-darker to vivid
maya May 14, 2021
d1d96f9
Use commas for better voicing
thisisdano May 17, 2021
07a1ae8
Use trailing comma hack for breadcrumbs
thisisdano May 17, 2021
f0b6d31
Use trailing comma hack for sidenav
thisisdano May 17, 2021
4a22724
Use trailing comma hack for sidenav
thisisdano May 17, 2021
fabbae6
Update snyk and reinstall deps
thisisdano May 17, 2021
3e6a2f9
Merge branch 'develop' into dw-site-pa11y
thisisdano May 17, 2021
3f96929
Update package-lock.json
thisisdano May 17, 2021
31dd210
Add state color tokens to default palettes.
mejiaj May 17, 2021
70f4882
Add state color test.
mejiaj May 17, 2021
d16b19f
Replace placeholder hash links with javascript:void(0);
thisisdano May 17, 2021
8e3831b
Give summary box an ARIA region labeled with the component hed ID
thisisdano May 17, 2021
8eb9161
Remove wrap class from breadcrumb default
thisisdano May 17, 2021
52ca395
Add ARIA label to default sidenav
thisisdano May 17, 2021
11dca56
Merge branch 'dw-site-pa11y' of https://github.com/uswds/uswds into d…
thisisdano May 17, 2021
ac03d17
Checkbox: add new background variable to tile.
mejiaj May 17, 2021
5793e89
Checkbox: use `set-text-and-bg()` to set color on tiles.
mejiaj May 17, 2021
46615f3
Default to js:void for sidenav links
thisisdano May 17, 2021
2650f15
Merge pull request #4197 from uswds/dw-site-pa11y
thisisdano May 17, 2021
06df38e
Merge branch 'develop' of github.com:uswds/uswds into jm-404-lang-es
mejiaj May 21, 2021
a5ec5f7
Merge branch 'develop' into jm-develop-remove-gulp-sass
thisisdano May 24, 2021
3adb973
Update package-lock.json
thisisdano May 24, 2021
26cd548
Merge pull request #4179 from uswds/jm-add-process-list-package
thisisdano May 24, 2021
cb3219a
Merge pull request #4193 from uswds/jm-usa-link-package
thisisdano May 24, 2021
58a6625
Add missing process-list package
thisisdano May 24, 2021
76f8f2d
Merge pull request #4134 from uswds/jm-develop-remove-gulp-sass
thisisdano May 24, 2021
20a9166
Update package-lock.json
thisisdano May 24, 2021
581d6b4
Merge branch 'develop' into gsq-avoid-es2015-includes
thisisdano May 24, 2021
1a92a6a
Merge pull request #4181 from maya/fix-radio-tile
thisisdano May 24, 2021
1a47b2c
Merge pull request #4183 from maya/update-success-dark
thisisdano May 24, 2021
0d5e7d8
Merge pull request #4155 from uswds/gsq-lightens-background-menu-toggle
thisisdano May 24, 2021
524d36f
Merge pull request #4132 from aduth/aduth-disabled-buttons-pointer-ev…
thisisdano May 24, 2021
756c31e
Merge pull request #4149 from uswds/gsq-avoid-es2015-includes
thisisdano May 24, 2021
758a8ed
Merge pull request #4198 from uswds/jm-state-color-utils
thisisdano May 24, 2021
d6d8286
Merge branch 'develop' into jm-404-lang-es
thisisdano May 24, 2021
b563b2c
Update fractal
thisisdano May 24, 2021
0215c2e
Merge branch 'develop' of github.com:uswds/uswds into gsq-4194-compon…
scottqueen-bixal May 24, 2021
f75505a
Merge pull request #4186 from uswds/jm-404-lang-es
thisisdano May 24, 2021
462149f
hat tip comment in documentation to webpack 5 working with exports field
scottqueen-bixal May 24, 2021
d6b177f
Merge pull request #4206 from uswds/gsq-4194-component-specific-depen…
mejiaj May 25, 2021
0754b5e
Add body--exdent to both groups of exdent rules
thisisdano May 26, 2021
164d360
Add an exdent test
thisisdano May 26, 2021
037e93a
Use custom colors for radio inputs
thisisdano May 26, 2021
28f9c8c
Update disabled:checked styles
thisisdano May 26, 2021
6f419bf
Sync settings
thisisdano May 26, 2021
0cbf97e
Merge branch 'develop' into jm-tile-add-bg
thisisdano May 26, 2021
adf7f11
Revert to white bg
thisisdano May 26, 2021
bf4e63d
Add mixin for quickly setting custom color
thisisdano May 27, 2021
07be940
Fix checkbox preview
thisisdano May 27, 2021
7d84ed7
Add custom color test
thisisdano May 27, 2021
976948a
Merge pull request #4210 from uswds/dw-card-exdent
mejiaj May 28, 2021
4a0dfc7
Merge pull request #4203 from uswds/dw-add-process-list
mejiaj May 28, 2021
fe9e246
Part of #4012: Create variables for value props subtemplate.
mejiaj May 28, 2021
305c182
Create variables for max subtemplate.
mejiaj May 28, 2021
df17fbc
Create global Fractal variable for placeholder link.
mejiaj May 28, 2021
2803424
Eslint fixes for fractal.config.js.
mejiaj May 28, 2021
535b54d
Create title variable for account header partial.
mejiaj May 28, 2021
bcb89db
Create password component.
mejiaj Jun 1, 2021
379b1f3
Add Spanish _Create account_ variant.
mejiaj Jun 1, 2021
988c06f
Remove test code.
mejiaj Jun 1, 2021
7cc8679
Added medium-negative token to spacing-palettes and core properties.
mahoneycm Jun 1, 2021
90b8830
Create variables for sign-in-form.
mejiaj Jun 1, 2021
bd7eea2
Page layouts: create Sign in variants.
mejiaj Jun 1, 2021
6dc045e
Fix sign in form label.
mejiaj Jun 1, 2021
53e3956
Ignore hidden password component on axe test.
mejiaj Jun 1, 2021
1a4c5bf
Remove elem-dataset dependency
aduth Jun 2, 2021
32a4beb
Use Spanish base template in Sign in pages.
mejiaj Jun 2, 2021
4f5ede0
Use brackets to demonstrate placeholder text.
mejiaj Jun 2, 2021
3a05980
removes our example directory
scottqueen-bixal Jun 2, 2021
2e70e7d
npm audit fix
thisisdano Jun 2, 2021
5b27e13
Remove IE9 code
thisisdano Jun 2, 2021
5c32703
Simplify and organize code
thisisdano Jun 2, 2021
d108bfc
Allow checkbox-and-radio-colors() to set custom checked color
thisisdano Jun 2, 2021
999a4d6
Use proper IDs in checkbox test
thisisdano Jun 2, 2021
ee525ae
Include test code [for now]
thisisdano Jun 2, 2021
3992ed9
Use "selected" instead of "checked"
thisisdano Jun 2, 2021
5bf9088
Merge branch 'develop' into jm-add-pagination
thisisdano Jun 2, 2021
9c0cad7
Update package-lock.json
thisisdano Jun 2, 2021
f273747
Use proper include path to base template
thisisdano Jun 2, 2021
f66ef5c
Merge pull request #4216 from uswds/gsq-remove-examples-dir
mejiaj Jun 3, 2021
8c33817
Set background color for elements based on setting
thisisdano Jun 3, 2021
5a527fe
Use images from develop.
mejiaj Jun 3, 2021
c92fb67
Merge branch 'develop' of github.com:uswds/uswds into accelerator-3945
mejiaj Jun 3, 2021
547f4d8
Add final edits
thisisdano Jun 4, 2021
d40d337
Remove misplaced var in config.
mejiaj Jun 4, 2021
c2d9608
Hide previous and next if first and last items are selected.
mejiaj Jun 4, 2021
c9eb3f5
Update logic for bounded sets of data.
mejiaj Jun 4, 2021
7662692
Remove disabled state since we're now hiding prev/next if they don't …
mejiaj Jun 4, 2021
4246000
Use list items instead of divs.
mejiaj Jun 4, 2021
8a6e9ab
Merge pull request #3982 from uswds/accelerator-3945
thisisdano Jun 4, 2021
81ba70f
Comment out test code
thisisdano Jun 4, 2021
cdc072d
Merge pull request #4213 from uswds/jm-login-page-lang-es
thisisdano Jun 4, 2021
d89ece4
Merge pull request #4214 from aduth/aduth-rm-elem-dataset
thisisdano Jun 4, 2021
01c9a60
Add tests for unbounded sets.
mejiaj Jun 4, 2021
7d210cc
Move ellipsis to parent template so it can be used in variants.
mejiaj Jun 4, 2021
447438e
Update infinite variant logic.
mejiaj Jun 4, 2021
63fc6db
Merge branch 'develop' of github.com:uswds/uswds into jm-add-pagination
mejiaj Jun 4, 2021
2d77538
Don't use tabular numerals
thisisdano Jun 7, 2021
19a4ae2
Use a more reliable fixed square size for the targets
thisisdano Jun 7, 2021
5147766
Merge pull request #4199 from uswds/jm-tile-add-bg
thisisdano Jun 7, 2021
eb81aa6
Center all pagination target content on the cross axis
thisisdano Jun 7, 2021
0336d92
Use `overflow` not `ellipsis` for abstraction
thisisdano Jun 7, 2021
0d07f2e
Increase target padding
thisisdano Jun 7, 2021
c191f26
Merge branch 'develop' of github.com:uswds/uswds into jm-add-pagination
mejiaj Jun 8, 2021
2ace49a
Use empty header on Pagination page example.
mejiaj Jun 8, 2021
2bee14b
Add missing div on multiple sign in.
mejiaj Jun 8, 2021
b726bc9
Templatize demo results page for pagination.
mejiaj Jun 8, 2021
bc397e7
Use comma's to ensure landmarks are unique.
mejiaj Jun 8, 2021
59b8d94
Add default case to unbounded pagination.
mejiaj Jun 8, 2021
86a0e84
Add class for infinite variant.
mejiaj Jun 9, 2021
013afd1
Modify logic for infinite pagination so it shows 2 items before and a…
mejiaj Jun 9, 2021
a067e02
Update demo pagination config.
mejiaj Jun 9, 2021
d5e1ee0
Set aria current on list items; move list markup to pagination items.
mejiaj Jun 9, 2021
bd18e1c
Reorganize config so labels are named consistently.
mejiaj Jun 9, 2021
cd2b561
Create an object for pager items.
mejiaj Jun 9, 2021
afa7308
Fix current status.
mejiaj Jun 10, 2021
81b8c83
Move aria label setting to it's own variable; update language.
mejiaj Jun 10, 2021
54ec341
Create page to demo pagination states.
mejiaj Jun 10, 2021
8a59b2f
Use scroll-snap on demo.
mejiaj Jun 10, 2021
3f4bc83
Add descriptions to different states.
mejiaj Jun 10, 2021
c91a0b4
Simplify infinite variant logic.
mejiaj Jun 11, 2021
d9006d9
Remove unused ranges on infinite.
mejiaj Jun 11, 2021
ab72b3c
Add unbounded tests.
mejiaj Jun 11, 2021
cedc8e4
Tweak default logic to accurately follow guidelines.
mejiaj Jun 11, 2021
ae91eb0
Remove 'of' label on unbounded sets.
mejiaj Jun 11, 2021
c5da301
Always show overflow element in infinite variant.
mejiaj Jun 11, 2021
7e8cfd6
Add more states to demo with descriptions.
mejiaj Jun 11, 2021
e6c544e
Pass background color to $pagination-current-color for more accurate …
mejiaj Jun 11, 2021
0309488
Add test classes for a11y color setting demo.
mejiaj Jun 11, 2021
daf55c7
Update descriptions to demo.
mejiaj Jun 11, 2021
f80d808
Merge pull request #4212 from mahoneycm/cm-neg-4
thisisdano Jun 14, 2021
6232d2f
Remove extra slot on infinite variant.
mejiaj Jun 15, 2021
8b7d8b0
Update unbounded description.
mejiaj Jun 15, 2021
54448ae
Update demo descriptions.
mejiaj Jun 15, 2021
264c328
Use final names for unbounded variant
thisisdano Jun 16, 2021
af48955
Use unbounded not infinite
thisisdano Jun 16, 2021
0966cb7
Reduce space around prev/next link text
thisisdano Jun 16, 2021
1c82b62
Don't use --unbounded as a modifier
thisisdano Jun 16, 2021
0538cae
Remove demo pages.
mejiaj Jun 16, 2021
5d4251b
Cleanup pagination all tests.
mejiaj Jun 16, 2021
e710b26
Update pagination status.
mejiaj Jun 16, 2021
d2566df
Update dev dependencies.
mejiaj Jun 16, 2021
da4b2eb
Merge branch 'jm-add-pagination' of https://github.com/uswds/uswds in…
thisisdano Jun 16, 2021
8f62a67
Merge pull request #4175 from uswds/jm-add-pagination
thisisdano Jun 16, 2021
2563258
Merge branch 'develop' into jm-update-dependencies
thisisdano Jun 16, 2021
b1b56a0
Update package-lock.json
thisisdano Jun 16, 2021
be5ecf8
2.11.2 → 2.12.0
thisisdano Jun 16, 2021
bd5e165
Update notifications and move deprecated settings to deprecated file
thisisdano Jun 16, 2021
143432f
Merge pull request #4235 from uswds/jm-update-dependencies
thisisdano Jun 16, 2021
3db6662
Update package-lock.json
thisisdano Jun 16, 2021
5f9009c
Merge branch 'develop' of https://github.com/uswds/uswds into develop
thisisdano Jun 16, 2021
a91dd10
2.12.0
thisisdano Jun 16, 2021
1e076a9
Create uswds-2.12.0-zip-hash.txt
thisisdano Jun 16, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion .prettierignore
@@ -1,4 +1,3 @@
*.html
*.njk
*.woff*
*.svg
Expand Down
28 changes: 21 additions & 7 deletions LICENSE.md
@@ -1,5 +1,17 @@
## A few parts of this project are not in the public domain

### Copyright ownership of Works created by U.S. federal employees

This repository contains both the original design for Google Material Icons (the “Work”, as defined in Section 1 of the Apache 2.0 License) and modifications made by the General Services Administration (GSA). This repository combines the Work and these GSA modifications, which is a “Modified Version” of Material Icons.

This repository also contains both original designs for Source Sans Pro, Merriweather, and Font Awesome (the “Font Software”, as defined in Section 1 of the SIL Open Font License, version 1.1) and modifications made by the General Services Administration (GSA). This repository combines the Work and these GSA modifications, which is a “Modified Version” of Source Sans Pro, Merriweather, Public Sans, and Font Awesome respectively.

As a work of the United States Government, the software modifications made by GSA are not subject to copyright within the United States. Additionally, GSA waives copyright and related rights in its software modifications worldwide through the CC0 1.0 Universal Public Domain Dedication (https://creativecommons.org/publicdomain/zero/1.0/).

The Work (as defined in the Apache 2.0 License) and Font Software (as defined in the SIL Open Font License, Version 1.1) remains subject to copyright under the respective open source license. The section below lists which works are subject to particular open source licenses.

This Modified Version packaged as `dist/img/sprite.svg` contains both design elements under the Apache 2.0 License and design modifications by GSA released as CC0. It is a “joint work” made of the icon set and modifications combined into a single work.

### Files licensed under the SIL Open Font License, Version 1.1

The Source Sans Pro font files in `src/fonts/source-sans-pro` are a [customized subset](https://github.com/miguelsousa/source-sans-pro-subset) of [Source Sans Pro](https://github.com/adobe-fonts/source-sans-pro) owned by Adobe Systems Incorporated, licensed under the [SIL Open Font License, Version 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web), and copyright 2010, 2012, 2014 [Adobe Systems Incorporated], with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe Systems Incorporated in the United States or other countries.
Expand All @@ -8,19 +20,17 @@ The Merriweather font files in `src/fonts/merriweather` are the version 2.001 fi

The Public Sans font files in `src/fonts/public-sans` are licensed under the [SIL Open Font License, Version 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web). Public Sans is a modification of Libre Franklin, copyright [Impallari Type](www.impallari.com).

The files in `src/img` are from [Font Awesome](http://fontawesome.io/) by Dave Gandy under the [SIL Open Font License, Version 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web).
Icon files in `src/img` and `src/img/social-icons` are from [Font Awesome](http://fontawesome.io/) by Dave Gandy under the [SIL Open Font License, Version 1.1](https://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=OFL_web).

### Files licensed under the Apache 2.0 License

The Roboto Mono font files in `src/fonts/roboto-mono` are licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).

The Google Material icons in `src/img/usa-icons` and `src/img/usa-icons-unused` are licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).
The Google Material Icons in `src/img/usa-icons` and `src/img/material-icons` are licensed under the [Apache License Version 2.0](https://www.apache.org/licenses/LICENSE-2.0.txt).

### Files licensed under the MIT license

The files in `src/stylesheets/lib` are from:

- [Normalize.css](https://github.com/necolas/normalize.css), copyright Nicolas Gallagher and Jonathan Neal, under the [MIT license](https://github.com/necolas/normalize.css/blob/master/LICENSE.md).
The files in `src/stylesheets/lib` are from [Normalize.css](https://github.com/necolas/normalize.css), copyright Nicolas Gallagher and Jonathan Neal, under the [MIT license](https://github.com/necolas/normalize.css/blob/master/LICENSE.md).

#### Full license text for the MIT licensed files:

Expand All @@ -44,13 +54,13 @@ Additionally, we waive copyright and related rights in the work worldwide throug

This is a human-readable summary of the [Legal Code (read the full text)](https://creativecommons.org/publicdomain/zero/1.0/legalcode).

#### No Copyright
#### No copyright

The person who associated a work with this deed has dedicated the work to the public domain by waiving all of his or her rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

#### Other Information
#### Other information

In no way are the patent or trademark rights of any person affected by CC0, nor are the rights that other persons may have in the work or in how the work is used, such as publicity or privacy rights.

Expand All @@ -59,3 +69,7 @@ Unless expressly stated otherwise, the person who associated a work with this de
### Contributions to this project

As stated in [CONTRIBUTING](CONTRIBUTING.md), all contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.

### Trademark

GSA owns, reserves, and retains all rights, title, and interest in all trademarks owned by GSA. The User does not acquire any right or interest of any kind in any GSA trademark because of their use of the Modified Version or any of the modifications made to the Work by GSA.
79 changes: 44 additions & 35 deletions README.md
Expand Up @@ -8,32 +8,35 @@ This repository is for the design system code itself. We maintain [another repos

## Contents

- [Background](#background)
- [Recent updates](#recent-updates)
- [Getting started](#getting-started)
- [Using the design system](#using-the-design-system)
- [Download and install](#download-and-install)
- [Install using `npm`](#install-using-npm)
- [Using the USWDS package](#using-the-uswds-package)
- [Sass and theme settings](#sass-and-theme-settings)
- [Sass compilation requirements](#sass-compilation-requirements)
- [JavaScript](#javascript)
- [Use another framework or package manager](#use-another-framework-or-package-manager)
- [CSS architecture](#css-architecture)
- [JS customization](#js-customization)
- [Customization, theming, and tokens](#customization-theming-and-tokens)
- [Using tokens in theme settings](#using-tokens-in-theme-settings)
- [Set the base asset paths (fonts and images)](#set-the-base-asset-paths-fonts-and-images)
- [Main variables that can be customized](#main-variables-that-can-be-customized)
- [Where things live](#where-things-live)
- [Browser support](#browser-support)
- [Accessibility](#accessibility)
- [Fractal](#fractal)
- [Template compatibility](#template-compatibility)
- [Need installation help?](#need-installation-help)
- [Contributing to the code base](#contributing-to-the-code-base)
- [Reuse of open-source style guides](#reuse-of-open-source-style-guides)
- [Licenses and attribution](#licenses-and-attribution)
- [United States Web Design System](#united-states-web-design-system)
- [Contents](#contents)
- [Background](#background)
- [Recent updates](#recent-updates)
- [Getting started](#getting-started)
- [Using the design system](#using-the-design-system)
- [Download and install](#download-and-install)
- [Install using npm](#install-using-npm)
- [Using the USWDS package](#using-the-uswds-package)
- [Sass and theme settings](#sass-and-theme-settings)
- [Sass compilation requirements](#sass-compilation-requirements)
- [JavaScript](#javascript)
- [Use another framework or package manager](#use-another-framework-or-package-manager)
- [CSS architecture](#css-architecture)
- [JS customization](#js-customization)
- [Customization, theming, and tokens](#customization-theming-and-tokens)
- [Using tokens in theme settings](#using-tokens-in-theme-settings)
- [Set the base asset paths (fonts and images)](#set-the-base-asset-paths-fonts-and-images)
- [Where things live](#where-things-live)
- [Browser support](#browser-support)
- [Accessibility](#accessibility)
- [Fractal](#fractal)
- [Template compatibility](#template-compatibility)
- [Long-term support of v1.x](#long-term-support-of-v1x)
- [Need installation help?](#need-installation-help)
- [Contributing to the code base](#contributing-to-the-code-base)
- [Reuse of open-source style guides](#reuse-of-open-source-style-guides)
- [Licenses and attribution](#licenses-and-attribution)
- [Contributing](#contributing)

## Background

Expand Down Expand Up @@ -62,12 +65,12 @@ How you implement the design system depends on the needs of your project and you

### Download and install

1. Download the [USWDS zip file](https://github.com/uswds/uswds/releases/download/v2.11.2/uswds-2.11.2.zip) from the latest USWDS release and open that file.
1. Download the [USWDS zip file](https://github.com/uswds/uswds/releases/download/v2.12.0/uswds-2.12.0.zip) from the latest USWDS release and open that file.

After extracting the zip file you should see the following file and folder structure:

```
uswds-2.11.2/
uswds-2.12.0/
├── css/
│   ├── uswds.min.css.map
│   ├── uswds.min.css
Expand Down Expand Up @@ -98,7 +101,7 @@ How you implement the design system depends on the needs of your project and you
```
example-project/
├── assets/
│   ├── uswds-2.11.2/
│   ├── uswds-2.12.0/
│   ├── stylesheets/
│   ├── images/
│   └── javascript/
Expand All @@ -118,11 +121,11 @@ How you implement the design system depends on the needs of your project and you
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>My Example Project</title>
<script src="assets/uswds-2.11.2/js/uswds-init.min.js"></script>
<link rel="stylesheet" href="assets/uswds-2.11.2/css/uswds.min.css" />
<script src="assets/uswds-2.12.0/js/uswds-init.min.js"></script>
<link rel="stylesheet" href="assets/uswds-2.12.0/css/uswds.min.css" />
</head>
<body>
<script src="assets/uswds-2.11.2/js/uswds.min.js"></script>
<script src="assets/uswds-2.12.0/js/uswds.min.js"></script>
</body>
</html>
```
Expand Down Expand Up @@ -247,7 +250,7 @@ We recommend using a **minifier** like [csso](https://github.com/css/csso) to co

### Use another framework or package manager

If you’re using another framework or package manager that doesn’t support `npm`, you can find the source files in this repository and use them in your project. Otherwise, we recommend that you follow the [download instructions](#download). Please note that the core team [isn’t responsible for all frameworks’ implementations](https://github.com/uswds/uswds/issues/877).
If you’re using another framework or package manager that doesn’t support `npm`, you can find the source files in this repository and use them in your project. Otherwise, we recommend that you follow the [download instructions](#download-and-install). Please note that the core team [isn’t responsible for all frameworks’ implementations](https://github.com/uswds/uswds/issues/877).

If you’re interested in maintaining a package that helps us distribute USWDS, the project’s build system can help you create distribution bundles to use in your project. Please read our [contributing guidelines](CONTRIBUTING.md#building-the-project-locally-with--gulp-) to locally build distributions for your framework or package manager.

Expand Down Expand Up @@ -304,7 +307,9 @@ function App() {

useEffect(() => {
// initialize
characterCount.on(ref); // default ref is document.body, if you want to use default you do not have to pass arguments
characterCount.on(ref);
// default ref is document.body, if you want to use
// default you do not have to pass arguments
accordion.on();

// remove event listeners when component un-mounts.
Expand All @@ -321,7 +326,9 @@ Angular example:
```js
export class App implements OnInit {
constructor() {
this.ref = document.body; // default ref is document.body, if you want to use default you do not have to pass arguments
this.ref = document.body;
// default ref is document.body, if you want to use
// default you do not have to pass arguments
}

ngOnInit() {
Expand All @@ -338,6 +345,8 @@ export class App implements OnInit {
}
```

> Those using **Webpack 5** can take advantage of the updated exports field which allows declaration for requests like `import "uswds"` or `import accordion from "uswds/src/js/components/accordion"`

## Customization, theming, and tokens

USWDS 2.0 provides extensive support for theming via its theme settings files introduced in [Sass and theme settings](#sass-and-theme-settings), above.
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Expand Up @@ -15,7 +15,7 @@ We include a security and vulnerability report with every USWDS release, and rel
We encourage you to verify the security and status of the USWDS package:

1. **Check the vulnerability badge.** Confirm the vulnerability badge in the [USWDS Github code repository](https://github.com/uswds/uswds) says there are `0` vulnerabilities.
1. **Download the package via npm.** We recommend using the [npm package](https://designsystem.digital.gov/documentation/developers/#install-using-npm) instead of the [zip file](https://designsystem.digital.gov/documentation/developers/#download), whenever possible. Using npm makes it easier to stay up-to-date and use the latest USWDS version as a project dependency, and is a secure and reliable way to download USWDS source code.
1. **Download the package via npm.** We recommend using the [npm package](https://designsystem.digital.gov/documentation/developers/#install-using-npm) instead of the [zip file](https://designsystem.digital.gov/documentation/developers/#download-and-install), whenever possible. Using npm makes it easier to stay up-to-date and use the latest USWDS version as a project dependency, and is a secure and reliable way to download USWDS source code.

## Report a security issue

Expand Down
13 changes: 3 additions & 10 deletions config/gulp/sass.js
Expand Up @@ -8,17 +8,16 @@ const gulpStylelint = require("gulp-stylelint");
const postcss = require("gulp-postcss");
const replace = require("gulp-replace");
const rename = require("gulp-rename");
const sass = require("gulp-sass");
const sass = require("gulp-dart-scss");
const sourcemaps = require("gulp-sourcemaps");
const changed = require("gulp-changed");
const dutil = require("./doc-util");
const pkg = require("../../package.json");
const { logError } = require("./doc-util");

const task = "sass";
const normalizeCssFilter = filter("**/normalize.css", { restore: true });

sass.compiler = require("sass");

const IGNORE_STRING = "This file is ignored";
const ignoreStylelintIgnoreWarnings = (lintResults) =>
formatters.string(
Expand Down Expand Up @@ -91,13 +90,7 @@ gulp.task(
return gulp
.src("src/stylesheets/uswds.scss")
.pipe(sourcemaps.init({ largeFile: true }))
.pipe(
sass
.sync({
outputStyle: "expanded",
})
.on("error", sass.logError)
)
.pipe(sass({ outputStyle: "expanded" }).on("error", logError))
.pipe(postcss(pluginsProcess))
.pipe(replace(/\buswds @version\b/g, `uswds v${pkg.version}`))
.pipe(gulp.dest("dist/css"))
Expand Down
28 changes: 0 additions & 28 deletions examples/README.md

This file was deleted.

53 changes: 0 additions & 53 deletions examples/browserify/README.md

This file was deleted.

2 changes: 0 additions & 2 deletions examples/browserify/js/.gitignore

This file was deleted.

18 changes: 0 additions & 18 deletions examples/browserify/package.json

This file was deleted.

1 change: 0 additions & 1 deletion examples/browserify/src/js/main.js

This file was deleted.

1 change: 0 additions & 1 deletion examples/grunt/.gitignore

This file was deleted.