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
Release 2.12.0 #4236
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sync 2.11.2
- Add latest styles and settings - Add Spanish variants - Include pagination package - Cleanup templates so they're more manageable. - Create macro for arrows - Create an include for default and infinite variants
USWDS Spacing Tokens - Resolves sass error: 'neg-4' is not a valid USWDS margin-horizontal token
…to jm-add-pagination
USWDS - Pagination: Update pagination on develop.
USWDS - Dependencies: Update dev dependencies.
Minor, but |
mejiaj
approved these changes
Jun 16, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new in USWDS 2.12.0
New component
We have one new component in this release. Learn more about it on our website:
Pagination: Pagination is navigation for paginated content.
New Spanish-language templates
We now have Spanish-language versions of our 404 template and our Authentication page templates
Other improvements and bug fixes
Added more negative margin tokens to margin utilities. Now you can use utilities like
margin-neg-4
andmargin-neg-5
. Thanks @mahoneycm! (#4212)Card's body exdent modifier now works as documented. Now adding the
.usa-card__body--exdent
modifier will work as expected. Thanks @btwegmann! (#4165)Checkbox and radio buttons now include automatic accessible color. Now checkbox and radio buttons will display in the proper accessible color, and adapt to the text, link, and background colors you set in your projects's settings. You can also declare a custom background color for checkbox and radio buttons with
$theme-input-background-color
. The selected tile color is now based on the accessible link color, and is not a custom setting. (#4199)We also added a new mixin to make it easier to scope custom checkbox and radio button colors:
checkbox-and-radio-colors($bg-color, $selected-color)
It takes two color token inputs,
$bg-color
and$selected-color
. Neither are required and will assume the values in settings if omitted. It returns all the code necessary to set checkbox and radio inputs for the desired scope.For instance, if you wanted to change the color of all checkbox and radio elements within a
.checkbox-tests
container, you could do something like the followingState color tokens available in default utilities. Now you can use utilities like
text-primary-dark
in the default utility set. (#4198)The
success-dark
color token now looks better. We updated the value ofsuccess-dark
to be more vivid and look more likesuccess
. Thanks @maya! (#4183)Cleaner margins in radio tiles. Now radio tiles have cleaner, more reliable styling for their margin. Thanks @maya! (#4181)
Settings
Changed
$theme-color-success-dark
green-cool-50
green-cool-50v
Changed
$theme-color-success-darker
green-cool-80
green-cool-60v
New
$theme-input-background-color
2
default
uses the value of$theme-body-background-color
.New
$theme-pagination-background-color
default
default
uses the value of$theme-body-background-color
.New
$theme-pagination-breakpoint
tablet
New
$theme-pagination-button-border-radius
md
New
$theme-pagination-button-border-width
1px
New
$theme-pagination-font-family
ui
Removed
$theme-input-tile-background-color-selected
primary-lighter
Removed
$theme-input-tile-border-color
base-lighter
Removed
$theme-input-tile-border-color-selected
primary-lighter
Dependencies and security
removed
removed
0
vulnerabilities in regular dependencies (dependencies for USWDS projects installed withnpm install uswds
)8 low, 4 moderate, 4 high
vulnerabilities in devDependencies (development dependencies)Release ZIP SHA-256 hash:
95be7f97ad592f68384d6cbbea87e1cd154b585207f35ca3ae2b7bdc6ffd1270