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.
This release features some significant breaking changes, but it should be the last release of major code changes before the final release of USWDS 2.0.
Bug Fixes
u-order()
utility mixinImprovements
General
We're now adding the USWDS version number to our settings files to better communicate which version of settings files your project uses. (Thanks @jeremyzilar!)
The layout grid now has its own switch for using
!important
(general >$theme-layout-grid-uses-important
) instead of being connected to the$theme-utilities-use-important
variable.We're now flipping the caret in dropdown menus when the menu is open to consistently indicate that it is closable (#2616)
Typography
We've added two new font-types to typography settings:
lang
andicon
for icon fonts and language-specific fonts (#2683)There's now support for adding custom font stacks and custom font source files in the typography settings file. (#2858)
Adding custom typefaces is now a bit simpler and actually works. (#2858)
We've improved the font rendering speed by adding
font-display: fallback
to our@font-face
declarations (#2744)Global styling options and prose scope are simpler and more streamlined. (#2814)
$theme-content-styles
and its options (global
,scoped
,none
)usa-prose
always applies content styles to its direct children$theme-global-styles-basic
variable with three explicit global styling vars — each set tofalse
by default.$theme-global-paragraph-styles
applies styling top
elements$theme-global-link-styles
applies styling toa
elements$theme-global-content-styles
applies styling top
,a
,h[1-6]
,ol
,ul
, andtable
elementsThere's better, more clear documentation in the typography settings
$theme-content-styles: 'scoped'
$theme-content-styles: 'global'
$theme-global-content-styles: true
$theme-content-styles: 'none'
$theme-global-paragraph-styles: false
$theme-global-link-styles: false
$theme-global-content-styles: false
$theme-global-styles-basic: true
$theme-global-paragraph-styles: true
$theme-global-link-styles: true
Breaking typography changes
$theme-font-path
in settings-general$theme-font-path
in settings-typography$theme-font-definitions
$theme-typeface-tokens
$theme-font-definitions.[token].name
$theme-typeface-tokens.[token].display-name
generate
,system-font
, andvariable-font
keys from typeface token maps$theme-font-[type]-custom-src
$theme-font-[type]-custom-stack
$theme-font-[type]
$theme-font-type-[type]
$theme-font-[role]
$theme-font-role-[role]
$theme-font-[role]
accepts$theme-font-[type]
variables$theme-font-[role]
acceptsfont-type
tokens like'mono'
,'sans'
, and'serif'
$theme-output-all-weights
$theme-generate-all-weights
core/font-definitions
— this file is deprecated$theme-global-styles-basic
$theme-global-paragraph-styles
,$theme-global-link-styles
, and$theme-global-content-styles
true
by defaultfalse
by defaultClass names
We've decided to use BEM naming for our class naming for disambiguation and consistency with industry norms. This is a major change that affects a majority of USWDS classes.
.usa-block-name__element-name--modifier
(#2915).usa-media-block
)typography
usa-background-dark
usa-dark-background
usa-content
usa-content
usa-content-list
usa-content-list
usa-display
usa-display
usa-external_link
usa-link--external
usa-external_link-alt
usa-link--external.usa-link--alt
usa-font-lead
usa-font-lead
usa-heading-alt
usa-heading-alt
usa-link
usa-link
usa-paragraph
usa-paragraph
usa-prose
usa-prose
button
usa-button
usa-button
usa-button-accent-cool
usa-button--accent-cool
usa-button-active
usa-button--active
usa-button-base
usa-button--base
usa-button-big
usa-button--big
usa-button-disabled
usa-button--disabled
usa-button-hover
usa-button--hover
usa-button-outline
usa-button--outline
usa-button-outline
usa-button--outline
usa-button-outline-disabled
usa-button-outline-inverse
usa-button--outline
.usa-button--inverse
usa-button-outline-inverse-disabled
usa-button-secondary
usa-button--secondary
usa-button-unstyled
usa-button-unstyled
usa-focus
usa-focus
embed
usa-embed-container
usa-embed-container
figure
usa-media_link
usa-media-link
inputs
usa-checkbox-input
usa-checkbox__input
usa-checkbox-label
usa-checkbox__label
usa-fieldset
usa-fieldset
usa-form-group
usa-form-group
usa-form-group-day
usa-form-group--day
usa-form-group-error
usa-form-group--error
usa-form-group-month
usa-form-group--month
usa-form-group-year
usa-form-group--year
usa-form-hint
usa-form__hint
usa-input
usa-input
usa-input-inline
usa-input--inline
usa-input-medium
usa-input--medium
usa-input-small
usa-input--small
usa-input-success
usa-input--success
usa-input-error
usa-input--error
usa-input-error-message
usa-input-error-message
usa-input-label-helper
usa-input__label-helper
usa-input-label-required
usa-input__label-required
usa-input-list
usa-input-list
usa-label
usa-label
usa-label-error
usa-label--error
usa-legend
usa-legend
usa-memorable-date
usa-memorable-date
usa-radio-input
usa-radio__input
usa-radio-label
usa-radio__label
usa-range
usa-range
usa-select
usa-select
usa-textarea
usa-textarea
list
usa-list
usa-list
usa-unstyled-list
usa-unstyled-list
table
usa-table
usa-table
usa-table-borderless
usa-table--borderless
tag
usa-tag
usa-tag
usa-tag-big
usa-tag--big
accordions
usa-accordion
usa-accordion
usa-accordion-bordered
usa-accordion--bordered
usa-accordion-button
usa-accordion__button
usa-accordion-content
usa-accordion__content
usa-accordion-heading
usa-accordion__heading
alerts
usa-alert
usa-alert
usa-alert-error
usa-alert--error
usa-alert-no-icon
usa-alert--no-icon
usa-alert-slim
usa-alert--slim
usa-alert-success
usa-alert--success
usa-alert-warning
usa-alert--warning
usa-alert-body
usa-alert__body
usa-alert-heading
usa-alert__heading
usa-alert-icon
usa-alert__icon
usa-alert-info
usa-alert__info
usa-alert-paragraph
usa-alert__paragraph
usa-alert-text
usa-alert__text
banner
usa-banner__header--expanded
usa-banner
usa-banner
usa-banner-button
usa-banner__button
usa-banner-button-text
usa-banner__button-text
usa-banner-content
usa-banner__content
usa-banner-guidance
usa-banner__guidance
usa-banner-header
usa-banner__header
usa-banner-header-action
usa-banner__header-action
usa-banner-header-close-text
usa-banner__header-close-text
usa-banner-header-expanded
usa-banner__header-expanded
usa-banner-header-flag
usa-banner__header-flag
usa-banner-header-text
usa-banner__header-text
usa-banner-icon
usa-banner__icon
usa-banner-inner
usa-banner__inner
checklist
usa-checklist
usa-checklist
usa-checklist-checked
usa-checklist__checked
usa-checklist-item
usa-checklist__item
footer
usa-footer
usa-footer
usa-footer-big
usa-footer--big
usa-footer-slim
usa-footer--slim
usa-footer-address
usa-footer__address
usa-footer-collapsible
usa-footer__primary-content--collapsible
usa-footer-contact-heading
usa-footer__contact-heading
usa-footer-contact-links
usa-footer__contact-links
usa-footer-contact-info
usa-footer__contact-info
usa-footer-logo
usa-footer__logo
usa-footer-logo-heading
usa-footer__logo-heading
usa-footer-logo-img
usa-footer__logo-img
usa-footer-nav
usa-footer__nav
usa-footer-primary-content
usa-footer__primary-content
usa-footer-primary-link
usa-footer__primary-link
usa-footer-primary-section
usa-footer__primary-section
usa-footer-return-to-top
usa-footer__return-to-top
usa-footer-secondary-link
usa-footer__secondary-link
usa-footer-secondary-section
usa-footer__secondary-section
usa-footer-social-links
usa-footer__social-links
usa-social-link
usa-social-link
usa-social-link-facebook
usa-social-link--facebook
usa-social-link-rss
usa-social-link--rss
usa-social-link-twitter
usa-social-link--twitter
usa-social-link-youtube
usa-social-link--youtube
usa-sign_up-block
usa-sign-up
usa-sign_up-header
usa-sign-up__heading
forms
usa-form
usa-form
usa-form-large
usa-form--large
usa-input-medium
usa-input--medium
usa-input-small
usa-input--small
usa-form-note
usa-form__note
graphic list
usa-graphic-list
usa-graphic-list
usa-graphic-list-heading
usa-graphic-list__heading
usa-graphic-list-row
usa-graphic-list__row
header
usa-current
usa-current
usa-header
usa-header
usa-header-basic
usa-header--basic
usa-header-megamenu
usa-header--megamenu
usa-header-extended
usa-header--extended
usa-header-extended-megamenu
usa-header-extended-megamenu
usa-logo
usa-logo
usa-logo-text
usa-logo__text
usa-megamenu
usa-megamenu
usa-menu-btn
usa-menu-btn
usa-nav
usa-nav
usa-nav-container
usa-nav__container
usa-nav-inner
usa-nav__inner
usa-nav-link
usa-nav__link
usa-nav-primary
usa-nav__primary
usa-nav-submenu
usa-nav__submenu
usa-navbar
usa-navbar
usa-overlay
usa-overlay
usa-search
usa-search
hero
usa-hero
usa-hero
usa-hero-callout
usa-hero__callout
usa-hero-callout-alt
usa-hero__callout-alt
usa-hero-heading
usa-hero__heading
layout
usa-layout-docs-main
usa-layout__docs-main
usa-layout-docs-sidenav
usa-layout__docs-sidenav
media block
usa-media_block-body
usa-media-block__body
usa-media_block-img
usa-media-block__img
navigation
usa-accordion-button
usa-accordion__button
usa-megamenu
usa-megamenu
usa-mobile-nav-active
usa-mobile-nav--active
usa-nav
usa-nav
usa-nav-close
usa-nav__close
usa-nav-container
usa-nav__container
usa-nav-primary
usa-nav__primary
usa-nav-primary-item
usa-nav__primary-item
usa-nav-secondary
usa-nav__secondary
usa-nav-secondary-item
usa-nav__secondary-item
usa-nav-secondary-links
usa-nav__secondary-links
usa-nav-submenu
usa-nav__submenu
usa-nav-submenu-item
usa-nav__submenu-item
usa-nav-submenu-list
usa-nav__submenu-list
usa-nav-submenu-list-item
usa-nav__submenu-list-item
usa-navbar
usa-navbar
usa-search
usa-search
search
usa-search
usa-search
usa-search-big
usa-search--big
usa-search-small
usa-search--small
usa-search-input
usa-search__input
usa-search-submit
usa-search__submit
usa-search-submit-text
usa-search__submit-text
section
usa-section
usa-section
usa-section-dark
usa-section--dark
usa-section-light
usa-section--light
sidenav
usa-sidenav
usa-sidenav
usa-sidenav-sublist
usa-sidenav__sublist
skipnav
usa-skipnav
usa-skipnav