Skip to content

5.0.0

Compare
Choose a tag to compare
@aduth aduth released this 09 Mar 20:14
· 346 commits to main since this release
8a6b483

Breaking Changes

  • Several button variants have been removed. These include:
    • Success (usa-button--success)
    • Dropdown (usa-button--dropdown)
    • Small (usa-button--small)
    • Tiny (usa-button--tiny)
  • The Password Strength Meter component has been removed.

Improvements

  • Link hover and active colors are now distinct.
    • Before: Hover and active colors are both primary-darker.
    • After: Hover is primary-dark, and active is primary-darker.
  • Improved support for "Unstyled" button variant (see documentation)
  • Add three new button variants to control width:
    • usa-button--wide displays a button at a wider (minimum) width at larger viewport displays.
    • usa-button--flexible-width displays a button at flexible width regardless of viewport size, and overrides default mobile appearance of full-width buttons.
    • usa-button--full-width displays a button at full width regardless of viewport size, and overrides default desktop appearance of flexible-width buttons.

Bug Fixes

  • Fix an issue where focused buttons appear with a double focus ring style.
  • Fix an issue where using the "auto" package entrypoint may cause components not to be loaded when used with some bundlers (e.g. Webpack).

Documentation

  • Add documentation for "Big" button variants.
  • Rename "Secondary" as "Outline" in buttons documentation.