Skip to content

Update banner flag to optimized SVG matching USWDS#9311

Merged
aduth merged 2 commits intomainfrom
aduth-banner-flag
Oct 5, 2023
Merged

Update banner flag to optimized SVG matching USWDS#9311
aduth merged 2 commits intomainfrom
aduth-banner-flag

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Oct 4, 2023

🛠 Summary of changes

Replaces the flag image used for the banner component.

Why?

  • To align to the U.S. Web Design system, which introduced a new flag image in v3.0.2
    • Eventually, we'll want to remove this from app/assets altogether, and use the file from the design system. Currently, USWDS only provides an unoptimized PNG file. I've proposed an upstream pull request to introduce both an optimized PNG and the vector image used here.
  • Subjectively, I think it looks better (scales better, more distinct stars and stripes)
  • TBD performance improvement? TBD because the old us-flag.png is smaller on disk (132 bytes), but larger overall download size from https://secure.login.gov/ (544 bytes). The SVG can be Brotli-compressed, unlike PNG (176 bytes brotli'd).

📜 Testing Plan

Visually inspect the banner flag image.

👀 Screenshots

Before After
image image

changelog: User-Facing Improvements, Banner, Update flag image to match design system guidance
@aduth aduth requested a review from nickttng October 4, 2023 15:27
@aduth aduth merged commit 94279c5 into main Oct 5, 2023
@aduth aduth deleted the aduth-banner-flag branch October 5, 2023 13:09
@jmhooper jmhooper mentioned this pull request Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants