Skip to content

Update default alert styles to replace "Other" variant#449

Merged
aduth merged 1 commit intomainfrom
aduth-rm-other-alert-variant
Jun 7, 2024
Merged

Update default alert styles to replace "Other" variant#449
aduth merged 1 commit intomainfrom
aduth-rm-other-alert-variant

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Jun 6, 2024

🛠 Summary of changes

Updates the Alert component styles to eliminate the custom usa-alert--other styles. This is intended to be backwards-compatible, where "Other" is intended to represent a stateless alert banner. This is already styled through USWDS as a slightly different shade of gray, and these changes help remove some confusion and extra code.

The concept of an "other" or default variant is already inherent to the idea of a BEM class "Block", so it's redundant to have an explicit class. Technically it was already possible to use these styles with a <div class="usa-alert">, though it was never documented.

📜 Testing Plan

  1. Go to http://localhost:4000/alerts/
  2. Observe "Default" alert styles

👀 Screenshots

Before After
image image

@aduth aduth requested a review from nickttng June 6, 2024 19:28
Copy link
Contributor

@nickttng nickttng left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for looking into this.

@aduth aduth merged commit 2aed00c into main Jun 7, 2024
@aduth aduth deleted the aduth-rm-other-alert-variant branch June 7, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants