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.11.2 #4169

Merged
merged 54 commits into from Apr 28, 2021
Merged

Release 2.11.2 #4169

merged 54 commits into from Apr 28, 2021

Conversation

thisisdano
Copy link
Member

@thisisdano thisisdano commented Apr 26, 2021

What's new in USWDS 2.11.2

Bugfixes

Checked radio buttons remain checked in disabled state. Now the visual checked state of a checked checkbox does not change if that element is later disabled. (#4160)

Fixed incorrect variable usage ($theme-site-max-width). We updated our docs and settings to remove the $theme-site-max-width variable, which was in the docs and in the settings, but not in the code itself. In its place, use $theme-grid-container-max-width. $theme-site-max-width is marked for deprecation. (uswds/uswds-site#1198)

Added missing Summary Box package. Now you can add a Summary Box package to your project with packages/usa-summary-box. (#4162)

Fixed unstyled button styling. We updated and strengthened the styling of unstyled buttons to prevent any unwanted style leakage from conventional buttons, especially is used in conjunction with usa-button--hover and usa-button--active classes. Thanks @aduth! (#4077)

Fixed color of active parents in the side navigation. We fixed a regression where the parent items in the side navigation no longer received the primary color. Thanks @asarazor! (#4163)

⚠️ Fixed the size of some of our icons. The view box on some or our icons was 20px instead of 24px. We updated these icons to use the proper view box. This may result in small changes to the display of icons, but will result in a more consistent placement and appearance across all icons in our icon set. (#4139)

⚠️ Swapped thumb icons in our sprite for consistency. We replaced thumb_down_off_alt with thumb_down_off in our icon sprite for consistency with its thumb_up pair. (#4139)

⚠️ Remove duplicate eye icon. Removes remove_red_eye icon from usa-icons and sprite. Use of visibility instead. (#4139)

Dependencies and security

dependency old new
lodash.debounce 4.0.7 REMOVED
@babel/preset-env 7.12.10 7.13.15
@frctl/fractal 1.5.4 1.5.6
@frctl/nunjucks 2.0.8 2.0.10
@types/node 14.14.13 14.14.43
autoprefixer 10.1.0 10.2.5
axe-core 4.1.1 4.2.0
eslint 7.14.0 7.25.0
eslint-config-prettier 7.0.0 7.2.0
gulp-replace 1.0.0 1.1.1
handlebars 4.7.6 4.7.7
jsdom 16.4.0 16.5.3
mocha 8.2.1. 8.3.2
mq-polyfill 1.1.8
node-notifier 9.0.0 9.0.1
postcss 8.2.1 8.2.13
postcss-csso 5.0.0 5.0.1
sass 1.29.0 1.32.11
sinon 9.2.2 9.2.4
snyk 1.557.0 1.570.0
stylelint-prettier 1.1.2 1.2.0
stylelint-scss 3.18.0 3.19.0
typescript 4.1.3 4.2.4

0 vulnerabilities in regular dependencies (dependencies for USWDS projects installed with npm install uswds)

6 low, 2 high vulnerabilities in devDependencies (development dependencies)

Release ZIP SHA-256 hash: 688ddc5a0807eb202093f435b9949a5b29ebef9a7d6e7d073279d28ffd83e9a8

Jeff Eoff and others added 30 commits March 1, 2021 12:03
…ked and disabled. added styles for the --tile version.
…ides

The unstyled button mixin customizes the hover and active appearance of a button, but only applies this with the browser-native `:hover` and `:active` modifiers, and not with USWDS' explicit `usa-button--hover` and `usa-button--active` modifier classes.
Changes from responding to resize event with conditions on current viewport size, to event-based matchMedia.

Why:

- Fewer runtime dependencies, reducing bundle size and maintenance overhead
- Faster response time of viewport changes, since viewport-specific logic is run immediately, without a debounce delay
- Simpler tests, due to the absence of timer scheduling accounting for debounce
- Less computationally-intensive, since resize events are no longer handled, regardless whether they're debounced
Co-authored-by: Dan O. Williams <11464021+thisisdano@users.noreply.github.com>
The unstyled button resets font smoothing which may have been applied by e.g. disabled button styling. However, the reset is opinionated and assumes a specific default font smoothing. This can cause some inconsistency between the appearance of links and unstyled buttons if the page's default font smoothing does not match the opinionated reset styling. Instead, reset using the "inherit" keyword to inherit what would be the normal font smoothing behavior absent smoothing applied by the "add-knockout-font-smoothing" mixin.
Use 24px icons only (+ small icon updates)
- Remove extra example
- Move radio tile checked back to 1st item
mejiaj and others added 24 commits April 20, 2021 08:29
- Remove duplicate entry
- Add missing summary box
- Sort alphabetically
- Add icon and icon list
- Add site alert
- Add collection
USWDS - Footer Component updates test spec
…abled-even-when-checked

USWDS - Checkbox & Radio: Display state when disabled and checked.
USWDS - Variables: Deprecate site-max-width variable.
Buttons: Use "inherit" for font smoothing reset
USWDS - Packages: Add summary box and update imports list.
Button: Include explicit state classes in unstyled hover, active overrides
USWDS - Side navigation: Fix current color link color.
This will enable any user overrides in subsequent code
@thisisdano thisisdano requested a review from mejiaj April 28, 2021 16:52
@thisisdano thisisdano marked this pull request as ready for review April 28, 2021 16:52
@mejiaj mejiaj merged commit de44902 into main Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants