Visitar URL original
USWDS 3.2.0 by thisisdano · Pull Request #4998 · uswds/uswds · GitHub
Skip to content

USWDS 3.2.0 - #4998

Merged
thisisdano merged 151 commits into
mainfrom
release-3.2.0
Oct 19, 2022
Merged

thisisdano merged 151 commits into
mainfrom
release-3.2.0

Conversation

@thisisdano

@thisisdano thisisdano commented Oct 19, 2022 •

Copy link
Copy Markdown
Contributor

What's new in USWDS 3.2.0

This release contains markup changes and potentially breaking changes. A ⚠️ icon indicates where we've made a change that might be a breaking change for your project.

Package updates

usa-alert

Updated the alignment of the Alert and Site alert component content to visually match alignment with banner content. (#4922)

usa-banner

We made a number of small changes to the banner to improve how screen readers read its content. None of these changes are breaking chances, but they are all improvements teams should make to their banner component. (#4925)

⚠️ Updated the aria-label in English versions of usa-banner. When read out on a screen reader, the statement "An official website of the United States government" can sound like "Unofficial website of the United States government". To minimize confusion, we updated the component's aria-label to instead read "Official website of the United States government". Thanks @AmandaD-USDS! (#4925)

- <section class="usa-banner" aria-label="Official government website">
+ <section class="usa-banner" aria-label="Official website of the United States government">
- <div class="grid-col-fill tablet:grid-col-auto">
+ <div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
    <p class="usa-banner__header-text">An official website of the United States government</p>
-   <p class="usa-banner__header-action" aria-hidden="true">Here’s how you know</p>
+   <p class="usa-banner__header-action">Here’s how you know</p>

⚠️ Added aria-hidden attribute to the flag icon in the banner component. The flag icon in the banner component is purely decorative and we can safely remove it from the screen reader readout. (#4925)

- <img class="usa-banner__header-flag" src="[your flag path]" alt="U.S. flag">
+ <img class="usa-banner__header-flag" aria-hidden="true" src="[your flag path]" alt="">

⚠️ Simplified ARIA label in the lock SVG. We simplified the way we're using aria-labelledby in the lock SVG to streamline screenreader vocalization. (#4925)

- <svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" class="usa-banner__lock-image" role="img" aria-labelledby="banner-lock-title banner-lock-description" focusable="false">
+ <svg xmlns="http://www.w3.org/2000/svg" width="52" height="64" viewBox="0 0 52 64" class="usa-banner__lock-image" role="img" aria-labelledby="banner-lock-description" focusable="false">
- <desc id="banner-lock-description">A locked padlock</desc>
+ <desc id="banner-lock-description">Locked padlock</desc>

usa-character-count

Improved screen reader experience. The character counter now includes a brief pause after input before announcing how many characters remain. Announcing the input no longer prevents the character counter from reading. Thanks @davidc-gds! (#4976)

usa-icon

Fixed potential incompatibility with ARM-based Macs. We updated our SVG sprite compiler. This should resolve potential dependency incompatibilities on computers with ARM processors. (#4665)

usa-identifier

⚠️ Use valid element for identity's aria label. We updated the identity section of the Identifier to use a section instead of a div so it's aria-label will apply to a valid element. (#4964)

- <div class="usa-identifier__identity" aria-label="Agency identifier">
+ <section class="usa-identifier__identity" aria-label="Agency identifier">
    ...
- </div>
+ </section>

usa-site-alert

Updated the alignment of the Alert and Site alert component content to visually match alignment with banner content. (#4922)

usa-tooltip

Tooltip allows for dynamic initialization. Tooltip now initializes on first interaction and checks if it has been initialized before toggling. If it hasn't initialized properly then it will call a setup attributes function. (#4955)

usa-validation

Updated the validation component so that users of assistive technologies can receive status updates about the completion of each validation requirement. This was done by adding a script that generates appropriate ARIA attributes. (#4914)

Dependency updates

Dependency Old New
@storybook/addon-a11y 6.5.5 6.5.12
@storybook/addon-essentials 6.5.5 6.5.12
@storybook/addon-links 6.5.5 6.5.12
@storybook/builder-webpack5 6.5.5 6.5.12
@storybook/html 6.5.5 6.5.12
@storybook/manager-webpack5 6.5.5 6.5.12
gulp-svg-sprite 1.5.0 REMOVED
gulp-svgstore — 9.0.0
handlebars-helpers 0.10.0 0.9.8
react-dom — 17.0.2
sass 1.45.2 REMOVED
sass-embedded —  1.53.0
snyk 1.817.0 1.966.0
stylelint 14.1.0 14.13.0

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

Internal only: 26 high vulnerabilities in devDependencies (development dependencies)

Release TGZ SHA-256 hash: 2cf071fe6af1d337c0a2bfe3fd930ea9396dae1130b7e3a7bafbfafb98e2492f

thisisdano and others added 30 commits May 4, 2022 11:07
Updated sass imports in util.js and include.spec.js

- Replace `sass` with `sass-embedded`
- Run prettier
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
James Mejia and others added 17 commits October 11, 2022 11:50
USWDS - Docs: Add TSP and Challenge.gov
USWDS - Identifier: Use valid element for identity's aria label
USWDS - Bug: Fix invalid aria role in validator list items
USWDS - JS: Remove domready for component JS init
USWDS - Character count: Improve screen reader experience
- Updated stylelint to latest (14.13.0)
- Added react-dom@17 to resolve peer dependencies
- Updated storybook dependencies
- Updated handlebars-helpers to fix a vulnerability
Update dependencies to resolve peer conflicts

@amyleadem amyleadem left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Confirmed that:

  • All listed 3.2.0 project items were included and working
  • All descriptions are accounted for and free from error
  • All dependency updates are accounted for and accurate
  • The hash .txt matches the release notes and .tgz file
  • Common npm commands succeed without error

@thisisdano
thisisdano merged commit 1690554 into main Oct 19, 2022
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.

3 participants