Visitar URL original
USWDS 3.9.0 by thisisdano · Pull Request #6096 · uswds/uswds · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
214 commits
Select commit Hold shift + click to select a range
610836d
Add alert in template story; use existing args
Nov 24, 2023
da0da2f
Remove left alignment from shared styles
Nov 24, 2023
f4c03bd
Create new shared left-align variables
Nov 24, 2023
c7e3be8
Set left alignment on alert styles
Nov 24, 2023
ccdf8cc
Set left alignment on site alert styles
Nov 24, 2023
c31b5ac
Add $theme-alert-icon-gap
Nov 24, 2023
6d7e797
Set default $theme-alert-padding-x to zero 0
Nov 24, 2023
7816611
Run prettier
Nov 24, 2023
014e47c
Add "alert" and "site alert" to test content
Nov 24, 2023
a89e20b
Add $theme-alert-align-with-site-alert checks
Nov 24, 2023
3c2b318
Run prettier
Nov 24, 2023
c2eef10
Reset setting defaults
Nov 24, 2023
532cfe5
Remove unused vars
Nov 24, 2023
611bfe1
Remove mouseover behaviors from date-picker
mahoneycm Feb 15, 2024
fb4cf32
Remove date-range mouseover unit tests
mahoneycm Feb 15, 2024
ba11fcf
Merge branch 'develop' of github.com:uswds/uswds into cm-date-range-r…
mahoneycm Feb 15, 2024
9a998ec
Remove unused definition and iOS check
mahoneycm Feb 15, 2024
4bd11af
Replace usagov link in Spanish variants
Apr 26, 2024
9e76774
Add missing angle bracket
skyf0l Apr 26, 2024
e86636a
Define additional character count elements and add them to getCharact…
mahoneycm May 1, 2024
61575f7
Toggle input error with character count validation
mahoneycm May 1, 2024
badd291
Create toggleErrorState function for form group error styles; call on…
mahoneycm May 1, 2024
e46d232
Run prettier
mahoneycm May 1, 2024
db85d06
correctly order character element definitions/checks
mahoneycm May 1, 2024
5aed8b4
Export error classes for unit testing
mahoneycm May 1, 2024
a5f6583
Unit tests: Add required form group and label elements to all unit te…
mahoneycm May 1, 2024
09dda8a
Unit tests: Add no form group and no label spec files
mahoneycm May 1, 2024
550d53e
Add new feature tests to character count spec file
mahoneycm May 1, 2024
fec6353
Run prettier
mahoneycm May 1, 2024
0fa3d4d
Unstyled Button: Collapse width at mobile viewport sizes
aduth Nov 21, 2023
6c59c0a
Merge pull request #5946 from uswds/main
thisisdano May 31, 2024
369cf3f
Merge pull request #5892 from uswds/al-identifier-es-link
thisisdano Jun 7, 2024
34c070a
Create and utilize add label styles mixin
mahoneycm Jun 28, 2024
556056b
Run prettier
mahoneycm Jun 28, 2024
c74a48d
fixed pagination border color for better contrast ratio
CTGM-Bixal Jul 1, 2024
f29ea78
npm audit fix
mahoneycm Jul 8, 2024
806ecc5
Update non vulnverable packages
mahoneycm Jul 8, 2024
9e77e5e
Added theme-card-font-family variable to card so that its value will …
cathybaptista Jul 8, 2024
ef07fbd
Install additional dependency updates
mahoneycm Jul 15, 2024
c5ea707
Revert sass updates
mahoneycm Jul 15, 2024
75f6025
Create separate mouseover behaviors to handle date range preview
mahoneycm Jul 16, 2024
1971885
Merge branch 'develop' of https://github.com/uswds/uswds into al-aler…
Jul 17, 2024
da0fb94
updated alpha value
CTGM-Bixal Jul 18, 2024
5eb49d9
Improve alignment in alert styles
Jul 18, 2024
bd05c23
Remove project-alerts.scss
Jul 18, 2024
1dc74a3
Remove "project-alerts" references
Jul 18, 2024
b40b9ab
add $theme-utility-breakpoints-custom setting
jamigibbs Jul 19, 2024
e6c7682
run prettier
jamigibbs Jul 19, 2024
47a5d0a
Revert "run prettier"
jamigibbs Jul 19, 2024
5abc90c
run prettier again and fix mapping error
jamigibbs Jul 19, 2024
9b9959e
Move reused date range calculation to function
mahoneycm Jul 22, 2024
fd6f309
Merge branch 'develop' of github.com:uswds/uswds into cm-date-range-r…
mahoneycm Jul 22, 2024
bca8a3e
Remove mouseover focus tests
mahoneycm Jul 22, 2024
31b4bef
Add JSDoc comments to new functions
mahoneycm Jul 22, 2024
4a161fe
Restore mouseover event for unit tests
mahoneycm Jul 22, 2024
0a9f88d
Replace for..of loop with ForEach; Run prettier
mahoneycm Jul 22, 2024
6e811c4
Rename date button variable
mahoneycm Jul 22, 2024
0bf9627
Move handleMouseoverFromDate function to it's original location
mahoneycm Jul 22, 2024
d0e5e25
Set x padding to 0; remove $theme-alert-align-with-site-alert
Jul 22, 2024
f92144d
Add param types to setRangeDates()
mahoneycm Jul 22, 2024
9a1dc10
Remove console.log
mahoneycm Jul 22, 2024
0441381
Improve JSDoc comments for setRangeDates()
mahoneycm Jul 22, 2024
2307b26
Move all x alignment to alert-status-styles
Jul 22, 2024
5cb5dbe
Run prettier
Jul 22, 2024
fc08a0d
Reword comment for clarity
Jul 23, 2024
1ea4c93
Remove .scss prefix in units.scss file
mahoneycm Jul 25, 2024
d94671f
Add error state control and logic based markup
mahoneycm Jul 26, 2024
532ecff
changed alpha value back to original and added text decoration underl…
CTGM-Bixal Jul 29, 2024
95c8f55
Add autocomplete attribute to email inputs
Jul 31, 2024
bf12471
Add August non-vulnerable updates
mahoneycm Aug 5, 2024
af4c99f
Improve error state story
mahoneycm Aug 6, 2024
156defc
updated toggleCalendar funciton to account for aria-disabled attribute
CTGM-Bixal Aug 7, 2024
7ddb18d
Merge branch 'main' of https://github.com/uswds/uswds into develop
Aug 9, 2024
42907b9
Merge pull request #6018 from uswds/main
thisisdano Aug 9, 2024
ed1fd96
5955: Remove lines 654 to 672 (assistive hint).
cathybaptista Aug 13, 2024
924f6cf
5955: Remove references to assistiveHintID variable.
cathybaptista Aug 13, 2024
f755548
Merge branch 'develop' of https://github.com/uswds/uswds into develop
Aug 13, 2024
9c39671
updated date picker to account for readonly when using aria-disabled
CTGM-Bixal Aug 14, 2024
46217dd
updated text decoration
CTGM-Bixal Aug 16, 2024
f5e9f61
5910-remove-numeric-months-from-memorable-date
cathybaptista Aug 16, 2024
565a9e3
Import alert component, add to error state preview
mahoneycm Aug 19, 2024
9689e86
Remove alert story import
mahoneycm Aug 19, 2024
0503431
Format code
mahoneycm Aug 19, 2024
eb8a7df
events.
mahoneycm Aug 19, 2024
2201d17
Generate package-lock.json
mahoneycm Aug 19, 2024
74e8c59
Restore prettier ignore behaviors
mahoneycm Aug 20, 2024
172c512
updated ariaDisabled and toggleCalendar functions
CTGM-Bixal Aug 20, 2024
26ddbdd
Update packages/usa-form/src/test/test-pattern/test-usa-form.twig
Aug 21, 2024
b65075a
Refactor alert to be self contained within twig file
mahoneycm Aug 21, 2024
b7fa1f0
Add form group error state on input instead of focus out
mahoneycm Aug 23, 2024
4cbc41c
Update unit tests; run prettier
mahoneycm Aug 23, 2024
95a33e3
Remove toggleErrorState function
mahoneycm Aug 23, 2024
63ea589
Merge branch 'develop' of github.com:uswds/uswds into cm-char-count-e…
mahoneycm Aug 23, 2024
8786370
removed two other instances of text-decoration
CTGM-Bixal Aug 23, 2024
d079149
Update alert text
mahoneycm Aug 23, 2024
a105219
Merge pull request #6029 from uswds/cm-error-preview-alert
annepetersen Aug 23, 2024
14f5cb1
updated readonly and aria-diabled code
CTGM-Bixal Aug 26, 2024
18e578c
updated ariaDisbaled and enable functions for consistency
CTGM-Bixal Aug 26, 2024
2d93884
Merge branch 'develop' of https://github.com/uswds/uswds into rc-prev…
CTGM-Bixal Aug 27, 2024
f3f441c
ran prettier for circle-uswds check
CTGM-Bixal Aug 27, 2024
46697eb
Removed order style so dropdown appears at bottom of menu.
cathybaptista Aug 27, 2024
43cb507
Merge branch 'develop' of https://github.com/uswds/uswds into develop
Aug 27, 2024
182f250
Add Getting started with USWDS code section
Aug 28, 2024
f12bc9a
Tweak copy
amyleadem Aug 29, 2024
1ad70cc
Tweak copy
amyleadem Aug 29, 2024
9fb0b7c
Fix typo "fist" -> "first"
amyleadem Aug 29, 2024
04e559e
Add text to github link for accessibility
amyleadem Aug 29, 2024
341e20d
Tweak copy
amyleadem Aug 29, 2024
0eb2ec6
Break alignment across alert/site alert
Aug 30, 2024
eb76759
Merge branch 'develop' of https://github.com/uswds/uswds into al-aler…
Aug 31, 2024
f07f8e8
maintain hr between style and declaration.
cathybaptista Sep 3, 2024
39ab1b7
Reset $theme-alert-padding-x to 2.5
Sep 3, 2024
59695c8
Reset $theme-alert-icon-size to 4
Sep 3, 2024
dc9b6b9
Fix alignment; clean up code
Sep 3, 2024
6da8990
Run prettier
Sep 3, 2024
71fd77f
Share alert icons across alert/site alert
Sep 3, 2024
0870fa8
Format code
Sep 4, 2024
251e932
Restory left border in place of pseudo element
Sep 4, 2024
4f8fcad
Restore default value for $theme-alert-bar-width
Sep 4, 2024
0e59b9f
Remove theme token from system-spacing tokens
mahoneycm Sep 4, 2024
fa93556
Merge all breakpoint maps into 'complete' map
mahoneycm Sep 4, 2024
a03b062
Restore utility breakpoint builder to simpler structure now that cust…
mahoneycm Sep 4, 2024
3be73f6
Move default alignment out of status styles
Sep 4, 2024
9a0dc95
Run prettier
Sep 4, 2024
56423c5
Use $theme-alert-padding-x to define right margin
Sep 4, 2024
333a726
Add error message to rem-to-user-em function
mahoneycm Sep 4, 2024
e6a8bb2
Merge pull request #5972 from uswds/cm-POAM-july-2024
thisisdano Sep 9, 2024
0e6363e
npm audit fix
mahoneycm Sep 9, 2024
0ce2a9e
Update non-vulnerable dependencies
mahoneycm Sep 9, 2024
a90fef6
npm audit fix to resolve some new dependency vulnerabilities
mahoneycm Sep 10, 2024
3c92dad
Update additional non-vulnerable dep: typescript
mahoneycm Sep 10, 2024
1a88d63
just make sure we've got the latest.
cathybaptista Sep 10, 2024
2785b67
correct spacing above search bar.
cathybaptista Sep 10, 2024
3a6c114
remove additional margin from nav
cathybaptista Sep 10, 2024
ec2aada
reduce spacing in header nav.
cathybaptista Sep 11, 2024
7e420b6
applied consistent margin to all search inputs in header.
cathybaptista Sep 11, 2024
eb0a691
Remove unused dependencies
aduth Mar 22, 2024
84f6a1e
Merge branch 'cb-remove-order-from-usa-nav' of https://github.com/usw…
Sep 11, 2024
a68ac1d
Run prettier
Sep 11, 2024
23ee9d6
Add guidance to provide link to reproducible example
Sep 11, 2024
fe42118
Remove label and form group errors
mahoneycm Sep 12, 2024
84f24b1
Add no label && no form group test stories
mahoneycm Sep 12, 2024
0ea2129
Move custom breakpoints from standard to extended; refactor utility b…
mahoneycm Sep 13, 2024
5169607
Run prettier
mahoneycm Sep 13, 2024
9c2f6d4
Tweak copy
Sep 16, 2024
adb5ba9
change margin-top to 0 to avoid visual regression on desktop views fo…
cathybaptista Sep 16, 2024
701dd1a
add a lf before media query to improve readability.
cathybaptista Sep 17, 2024
83a5fb3
Rename test stories
Sep 17, 2024
8e5295c
Remove unnecessary media queries
Sep 17, 2024
964dfcc
Restore react-dom, twig-html-loader
aduth Sep 18, 2024
6354d4e
Create and implement px-to-user-em sass function
mahoneycm Sep 18, 2024
eea0ec4
Add unit test and error message to px-to-user-em
mahoneycm Sep 18, 2024
3c6e0fa
Remove period from warning valid value list
mahoneycm Sep 18, 2024
4d3c318
Remove unsuded settings at-rule from spacing tokens
mahoneycm Sep 18, 2024
5b8e2d6
Move body x margins out of alert-status-styles.scss
Sep 18, 2024
90bb597
Merge branch 'cb-remove-order-from-usa-nav' of https://github.com/usw…
Sep 18, 2024
bbc3779
Run prettier
Sep 18, 2024
6b22e0a
Merge branch 'develop' of github.com:uswds/uswds into cm-custom-break…
mahoneycm Sep 19, 2024
20372c1
Remove no label + no form group unit tests
mahoneycm Sep 19, 2024
1fc6509
Add curly brackets to if statements; Add input ID to js doc @returns
mahoneycm Sep 19, 2024
116b649
Vertically center text w/ large icon; set min height; left align all …
Sep 19, 2024
fe374ca
Adjust icon left alignment
Sep 19, 2024
b956b62
Run prettier
Sep 19, 2024
0061b5f
Format code
Sep 19, 2024
e063b9c
Merge branch 'develop' of https://github.com/uswds/uswds into al-aler…
Sep 20, 2024
6e546f5
Add comment for optical vertical alignment
amyleadem Sep 20, 2024
9fdff11
Format code
Sep 20, 2024
069cb7b
Replace margin align with padding
Sep 23, 2024
d3a2a08
Revert alert-icons and site-alert-icons
Sep 23, 2024
914ca8a
Replace margin w/ padding in site alert
Sep 23, 2024
8dba290
Run prettier
Sep 23, 2024
96a457c
Disable a11y test on test templates
Sep 23, 2024
4c98433
Run prettier
Sep 23, 2024
92d864f
Move test alert content to shared JSON
Sep 23, 2024
9596f10
Move test JSON content to content dir
Sep 23, 2024
7cc159e
Run prettier
Sep 23, 2024
f319030
Add "and can not be generated" to warning message
Sep 24, 2024
6fb3bcb
Add custom breakpoints to grid-gap, col, & offset
Sep 26, 2024
4a93553
Add custom breakpoints for grid-container
Sep 26, 2024
76be26f
Use includes for alert and site alert in test stories
Sep 27, 2024
d42d4d3
Move text data to var in alert-comparison.twig
Sep 30, 2024
9c6fbd7
Merge pull request #6083 from uswds/al-custom-breakpoints
amyleadem Oct 1, 2024
ab37ca3
Merge pull request #6058 from uswds/al-issue-template-reproduce
thisisdano Oct 3, 2024
6cb2b18
Merge pull request #5899 from skyf0l/develop
thisisdano Oct 3, 2024
accbee1
Merge pull request #6052 from uswds/cm-POAM-september-2024
thisisdano Oct 3, 2024
2e398d2
Merge pull request #5774 from uswds/cm-date-range-remove-mouseover
thisisdano Oct 3, 2024
3f06476
Merge pull request #5636 from uswds/al-alert-icon-alignment
thisisdano Oct 3, 2024
aa4fc23
Merge pull request #6028 from uswds/cb-memorable-date-input-options
thisisdano Oct 3, 2024
91c741c
Merge pull request #5974 from uswds/cb-component_should_use_theme_set…
thisisdano Oct 3, 2024
17a08cc
Merge pull request #6013 from uswds/rc-prevent-calendar-form-opening-…
thisisdano Oct 3, 2024
b8f37e7
Merge pull request #5970 from uswds/rc-update-pagination-border-color
thisisdano Oct 3, 2024
5c58681
Merge pull request #5965 from uswds/cm-legend-label-styles
thisisdano Oct 3, 2024
3261823
Add more context to breakpoint units warning
thisisdano Oct 3, 2024
e65bc75
Merge pull request #5996 from uswds/cm-input-error-story
thisisdano Oct 3, 2024
c8887a1
Merge pull request #6002 from uswds/al-footer-autocomplete
thisisdano Oct 3, 2024
3a07bb8
Use simplified ordered list numbering throughout
thisisdano Oct 3, 2024
1fb7e32
Merge pull request #6048 from uswds/cm-custom-breakpoints
thisisdano Oct 3, 2024
dd28fbf
Merge pull request #6038 from uswds/al-contributing-getting-started
thisisdano Oct 3, 2024
13cdc61
Merge pull request #5631 from aduth/aduth-unstyled-width
thisisdano Oct 3, 2024
c970584
Merge pull request #6037 from uswds/cb-remove-order-from-usa-nav
thisisdano Oct 3, 2024
0b49aa3
Merge branch 'develop' of https://github.com/uswds/uswds into aduth-r…
Oct 3, 2024
bc33099
Merge pull request #5832 from aduth/aduth-rm-unused-deps
thisisdano Oct 3, 2024
d37ef9f
Merge pull request #6022 from uswds/cb-remove-aria-instructions
thisisdano Oct 4, 2024
ddc28d9
Merge pull request #5908 from uswds/cm-char-count-error-state
heymatthenry Oct 4, 2024
ec6d354
Add notifications for 3.9.0
thisisdano Oct 4, 2024
fd53cd1
Clean cache, rebuild, and audit package
thisisdano Oct 4, 2024
97a7484
Merge pull request #6095 from uswds/dw-audit-deps-3.9.0
thisisdano Oct 4, 2024
57c489e
Merge branch 'develop' into dw-add-notifications
thisisdano Oct 4, 2024
36d8a46
Merge pull request #6094 from uswds/dw-add-notifications
thisisdano Oct 4, 2024
11f1533
3.9.0
thisisdano Oct 4, 2024
c37c061
Create uswds-3.9.0-zip-hash.txt
thisisdano Oct 4, 2024
900e6e1
Set .usa-nav__primary button width to 100%
Oct 4, 2024
3441c5e
Merge pull request #6097 from uswds/al-set-nav-button-width
thisisdano Oct 4, 2024
1530937
Update uswds-3.9.0-zip-hash.txt
thisisdano Oct 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ body:
id: reproduce
attributes:
label: Steps to reproduce the bug
description: Describe how to reproduce this issue.
description: Describe how to reproduce this issue. If the issue is found only in your project, provide a link to a public repo or code preview that demonstrates this issue.
placeholder: |
1. Go to '...'
2. Click on '....'
Expand Down
104 changes: 58 additions & 46 deletions CONTRIBUTING.md

Large diffs are not rendered by default.

4,267 changes: 1,671 additions & 2,596 deletions package-lock.json

Large diffs are not rendered by default.

52 changes: 23 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uswds/uswds",
"version": "3.8.2",
"version": "3.9.0",
"description": "Open source UI components and visual style guide for U.S. government websites",
"engines": {
"node": ">= 4"
Expand Down Expand Up @@ -71,9 +71,9 @@
"fix:icons": "npx svgo --folder ./packages/usa-icon/src/img/uswds-icons -q && npx svgo --folder ./packages/usa-icon/src/img/usa-icons-bg -q",
"prettier": "npm run prettier:html && npm run prettier:js && npm run prettier:sass",
"prettier:check": "npx prettier -c ./packages/**/*.{scss,js}",
"prettier:html": "npx prettier --write './html-templates/**/**/*.html'",
"prettier:js": "npx prettier --write './packages/**/**/*.js'",
"prettier:sass": "npx prettier --write './packages/**/**/*.scss'",
"prettier:html": "npx prettier --write './html-templates/**/**/*.html' --ignore-path=.prettierignore",
"prettier:js": "npx prettier --write './packages/**/**/*.js' --ignore-path=.prettierignore",
"prettier:sass": "npx prettier --write './packages/**/**/*.scss' --ignore-path=.prettierignore",
"start:storybook": "start-storybook -p 6006",
"build:storybook": "build-storybook -o _site",
"build:html": "webpack build --config ./webpack.twig.config.js && npm run prettier:html"
Expand All @@ -96,7 +96,7 @@
"Atul Varma <atul.varma@gsa.gov>",
"Dan O. Williams <daniel.williams@gsa.gov>",
"Sara D. Cope <sara.cope@gsa.gov>",
"Stephanie Green <stephanie.green@gsa.gov"
"Stephanie Green <stephanie.green@gsa.gov>"
],
"license": "SEE LICENSE IN LICENSE.md",
"bugs": {
Expand All @@ -109,9 +109,9 @@
"resolve-id-refs": "0.1.0"
},
"devDependencies": {
"@18f/identity-stylelint-config": "4.0.0",
"@babel/core": "7.24.5",
"@babel/preset-env": "7.24.5",
"@18f/identity-stylelint-config": "4.1.0",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"@chanzuckerberg/axe-storybook-testing": "6.3.1",
"@material-design-icons/svg": "0.14.13",
"@storybook/addon-a11y": "6.5.16",
Expand All @@ -120,11 +120,10 @@
"@storybook/builder-webpack5": "6.5.16",
"@storybook/html": "6.5.16",
"@storybook/manager-webpack5": "6.5.16",
"@types/node": "20.12.11",
"@types/node": "20.14.10",
"ansi-colors": "4.1.3",
"autoprefixer": "10.4.19",
"axe-core": "4.9.1",
"babel-loader": "9.1.3",
"autoprefixer": "10.4.20",
"axe-core": "4.10.0",
"babelify": "10.0.0",
"browserify": "17.0.0",
"cross-spawn": "7.0.3",
Expand All @@ -133,14 +132,11 @@
"eslint": "8.56.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-no-unsanitized": "4.0.2",
"eslint-plugin-import": "2.30.0",
"eslint-plugin-no-unsanitized": "4.1.0",
"fancy-log": "2.0.0",
"file-loader": "6.2.0",
"gulp": "4.0.2",
"gulp-changed": "4.0.3",
"gulp-clean": "0.4.0",
"gulp-cli": "2.3.0",
"gulp-mocha": "9.0.0",
"gulp-postcss": "9.0.1",
"gulp-rename": "2.0.0",
Expand All @@ -154,34 +150,32 @@
"jsdom-global": "3.0.2",
"lodash.merge": "4.6.2",
"merge-stream": "2.0.0",
"mocha": "10.4.0",
"mocha": "10.7.3",
"mq-polyfill": "1.1.8",
"normalize.css": "8.0.1",
"path": "0.12.7",
"postcss": "8.4.38",
"postcss": "8.4.45",
"postcss-csso": "6.0.1",
"postcss-discard-comments": "6.0.2",
"postcss-import": "15.1.0",
"postcss-loader": "7.3.3",
"postcss-preset-env": "9.5.11",
"prettier": "3.2.5",
"postcss-preset-env": "9.6.0",
"prettier": "3.3.3",
"react-dom": "17.0.2",
"resolve-url-loader": "5.0.0",
"sass": "1.77.0",
"sass-embedded": "1.77.0",
"sass": "1.78.0",
"sass-embedded": "1.78.0",
"sass-loader": "13.3.2",
"sass-true": "6.0.1",
"sinon": "12.0.1",
"snyk": "1.1291.0",
"snyk": "1.1293.0",
"style-loader": "3.3.3",
"stylelint": "16.5.0",
"stylelint": "16.9.0",
"svgo": "3.3.2",
"twig-html-loader": "0.1.9",
"twigjs-loader": "1.0.3",
"typescript": "5.4.5",
"typescript": "5.6.2",
"vinyl-buffer": "1.0.1",
"vinyl-source-stream": "2.0.0",
"webpack": "5.91.0",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
}
}
4 changes: 2 additions & 2 deletions packages/templates/usa-base/includes/_identifier.twig
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@
'aria_label': 'Información y servicios del Gobierno de EE. UU.',
'description': '¿Necesita información y servicios del Gobierno?',
'link': {
'label': 'Visite USA.gov en Español',
'url': 'https://www.usa.gov/espanol/'
'label': 'Visite USAGov en Español',
'url': 'https://www.usa.gov/es/'
},
'display': true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
{{ form.email.label }}
{{ requiredLabel | trim | raw }}
</label>
<input class="usa-input" id="email" name="email" type="email" autocapitalize="off" autocorrect="off" required>
<input class="usa-input" id="email" name="email" type="email" autocapitalize="off" autocorrect="off" required autocomplete="email">
<label class="usa-label" for="password-create-account">
{{ form.password.label }}
</label>
Expand Down
1 change: 1 addition & 0 deletions packages/usa-alert/src/content/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export { default as NoIconContent } from "./usa-alert~no-icon.json";
export { default as SlimContent } from "./usa-alert~slim.json";
export { default as SuccessContent } from "./usa-alert~success.json";
export { default as WarningContent } from "./usa-alert~warning.json";
export { default as TestAlertContent } from "./test-usa-alert-content.json";
86 changes: 86 additions & 0 deletions packages/usa-alert/src/content/test-usa-alert-content.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"alerts": [
{
"header": "Info alert",
"title": "Info alert",
"modifier": "usa-alert--info"
},
{
"header": "Info alert - slim",
"title": "",
"modifier": "usa-alert--info usa-alert--slim"
},
{
"header": "Info alert - no icon",
"title": "Info alert - no icon",
"modifier": "usa-alert--info usa-alert--no-icon"
},
{
"header": "Info alert - slim, no icon",
"title": "",
"modifier": "usa-alert--info usa-alert--slim usa-alert--no-icon"
},
{
"header": "Emergency alert",
"title": "Emergency alert",
"modifier": "usa-alert--emergency"
},
{
"header": "Emergency alert - slim",
"title": "",
"modifier": "usa-alert--emergency usa-alert--slim"
},
{
"header": "Emergency alert - no icon",
"title": "Emergency alert - no icon",
"modifier": "usa-alert--emergency usa-alert--no-icon"
},
{
"header": "Emergency alert - slim, no icon",
"title": "",
"modifier": "usa-alert--emergency usa-alert--slim usa-alert--no-icon"
}
],
"siteAlerts": [
{
"header": "Info site alert",
"title": "Info site alert",
"modifier": "usa-site-alert--info"
},
{
"header": "Info site alert - slim",
"title": "",
"modifier": "usa-site-alert--info usa-site-alert--slim"
},
{
"header": "Info site alert - no icon",
"title": "Info site alert - no icon",
"modifier": "usa-site-alert--info usa-site-alert--no-icon"
},
{
"header": "Info site alert - slim, no icon",
"title": "",
"modifier": "usa-site-alert--info usa-site-alert--slim usa-site-alert--no-icon"
},
{
"header": "Emergency site alert",
"title": "Emergency site alert",
"modifier": "usa-site-alert--emergency"
},
{
"header": "Emergency alert - slim",
"title": "",
"modifier": "usa-site-alert--emergency usa-site-alert--slim"
},
{
"header": "Emergency site alert - no icon",
"title": "Emergency site alert - no icon",
"modifier": "usa-site-alert--emergency usa-site-alert--no-icon"
},
{
"header": "Emergency site alert - slim, no icon",
"title": "",
"modifier": "usa-site-alert--emergency usa-site-alert--slim usa-site-alert--no-icon"
}
]
}
16 changes: 16 additions & 0 deletions packages/usa-alert/src/styles/_usa-alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ $alert-icons: (
.usa-alert {
@include alert-styles;

.usa-alert__body {
@include u-padding-x($theme-alert-padding-x);

&::before {
left: calc(
units($theme-alert-padding-x) + $alert-icon-optical-adjust-left
);
}
}

* + & {
margin-top: units(2);
}
Expand All @@ -31,6 +41,12 @@ $alert-icons: (

.usa-alert--slim {
@include alert-styles-slim;

.usa-alert__body::before {
left: calc(
units($theme-alert-padding-x) + $alert-slim-icon-optical-adjust-left
);
}
}

.usa-alert--no-icon {
Expand Down
Loading