Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to USWDS v3.9.0 #1397

Merged
merged 8 commits into from
Nov 14, 2024
Merged

Update to USWDS v3.9.0 #1397

merged 8 commits into from
Nov 14, 2024

Conversation

jamigibbs
Copy link
Contributor

@jamigibbs jamigibbs commented Nov 11, 2024

Chromatic

https://3401-uswds-390--65a6e2ed2314f7b8f98609d8.chromatic.com

Description

What's new in USWDS 3.9.0: uswds/uswds#6098

va-alert before

before

va-alert after

after

va-pagination before

before

va-pagination after

This version updates the number links with an underline:

after

Closes department-of-veterans-affairs/vets-design-system-documentation#3401

QA Checklist

  • Component maintains 1:1 parity with design mocks
  • Text is consistent with what's been provided in the mocks
  • Component behaves as expected across breakpoints
  • Accessibility expert has signed off on code changes (if applicable. If not applicable provide reason why)
  • Designer has signed off on changes (if applicable. If not applicable provide reason why)
  • Tab order and focus state work as expected
  • Changes have been tested against screen readers (if applicable. If not applicable provide reason why)
  • New components are covered by e2e tests; updates to existing components are covered by existing test suite
  • Changes have been tested in vets-website using Verdaccio (if applicable. If not applicable provide reason why)

Acceptance criteria

  • QA checklist has been completed
  • Screenshots have been attached that cover desktop and mobile screens

Definition of done

  • Documentation has been updated, if applicable
  • A link has been provided to the originating GitHub issue (or connected to it via ZenHub)

@jamigibbs jamigibbs added the patch Patch change in semantic versioning label Nov 11, 2024
)}
{!slim && <slot name="headline"></slot>}
<slot></slot>
</div>
Copy link
Contributor Author

@jamigibbs jamigibbs Nov 12, 2024

Choose a reason for hiding this comment

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

I have added a wrapping div around the slot content because the USWDS alert module styles the alert content with the following CSS:

.usa-alert--info .usa-alert__body > * {
    margin-left: 2.5rem;
}

The selector > * will not work on a placeholder element like <slot> when it's the direct descendent.

The alert content is displaying like this without that div:

Screenshot 2024-11-12 at 1 11 12 PM

Copy link
Contributor Author

@jamigibbs jamigibbs Nov 12, 2024

Choose a reason for hiding this comment

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

This is happening now because this update was made:

Fixed a bug that caused $theme-site-margins-width to unexpectedly adjust the alignment inside the alert and site alert components. Alignment on the alert and site alert components will likely shift from this change. Confirm that your implementation of the component aligns as expected.

@@ -32,6 +32,6 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
onlyChanged: true
onlyChanged: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will revert before merging.

@jamigibbs
Copy link
Contributor Author

jamigibbs commented Nov 12, 2024

We already have a ticket created for the lock icon alignment:

Screenshot 2024-11-12 at 1 33 25 PM

@jamigibbs jamigibbs changed the title Update USWDS to v3.9.0 Update to USWDS v3.9.0 Nov 12, 2024
@jamigibbs jamigibbs requested a review from a team November 13, 2024 20:37
@jamigibbs jamigibbs marked this pull request as ready for review November 13, 2024 20:37
@jamigibbs jamigibbs requested a review from a team as a code owner November 13, 2024 20:37
Copy link
Contributor

@powellkerry powellkerry left a comment

Choose a reason for hiding this comment

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

That is quite the difference of padding on the alert. Design may need to update figma.
Looks good to me!

@jamigibbs jamigibbs merged commit ccc0140 into main Nov 14, 2024
8 checks passed
@jamigibbs jamigibbs deleted the 3401-uswds-390 branch November 14, 2024 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Patch change in semantic versioning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update USWDS to v3.9.0 in component-library
3 participants