Conversation
|
Problem 1: Long path references to LGDS and direct references to USWDS: Line 21 in 40b49f5 Problem 2: No direct support of new optimization options from USWDS. Possible solution: Restructure published folder hierarchy of Then change # Before:
# @use '@18f/identity-design-system/dist/assets/scss/uswds-theme' with (
# After:
@use 'uswds-core' with (
# ...
); |
|
Observing an issue after upgrading with alert display, where the icon is not shown in full: This appears to be related to an upstream issue I identified in USWDS which, combined with our use of LightningCSS postprocessor, results in a truncated icon (see uswds/uswds#5187 (comment)). |
Temporary patch in efc6876. |
|
One of the most interesting features of USWDS 3.0 is the ability to optimize the compilation by cherry-picking the individual component styles we need. I've added this in c53dff8 based on a quick pass at what we're currently using, and indeed it seems to have had a nice impact.
|
app/assets/stylesheets/_uswds.scss
Outdated
There was a problem hiding this comment.
changelog: Internal, Dependencies, Upgrade Login.gov Design System to v7
Sass silently compiles missing functions as the verbatim original text
Used for backup codes & TOTP setup
Add missing media-block, collection Pair down typography, helpers regex: usa-(?!(accordion|alert|banner|button|collection|form|header|icon-list|icon|layout-grid|modal|nav|process-list|sidenav|skipnav|step-indicator|tag|verification-badge|success-message|character-count|checkbox|combo-box|date-picker|error-message|fieldset|file-input|form-group|form|hint|input-prefix-suffix|input|input-mask|label|legend|memorable-date|radio|range|select|textarea|time-picker|prose|list|sr-only|link))
Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
| before { sign_in_and_2fa_user } | ||
|
|
||
| it 'allows a user to navigate between pages' do | ||
| # Emulate reduced motion to avoid timing issues with mobile menu flyout animation |
There was a problem hiding this comment.
Yeah, I was pretty happy about this, both from the perspective that this should be a feature we support anyways from an accessibility perspective, and also that it's a nice hack to avoid animation timing prolonging the feature specs.
And it also highlights the DevTools features we can use. In particular, I'm really interested in the Accessibility APIs (see related code comment in #8327).

🛠 Summary of changes
This pull request implements the upgrade to the Login.gov Design System v7. This includes an upgrade of the USWDS from v2.13.3 to v3.4.1, incorporates a rename of the design system package from
identity-style-guideto@18f/identity-design-system, and upgrades Sass syntax to support the new@use/@forwardsemantics required by USWDS v3.Draft: This pull request depends on several upstream changes, includingEdit: The new, stable version of18F/identity-design-system#331and18F/identity-design-system#321, and is not ready to merge. It's shared here as a demonstration of what the upgrade will look like, and to iterate toward further improvements prior to publishing v7 of the design system.@18f/identity-design-system@7.0.0is now published!