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 default alert styles to replace "Other" variant #449

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

aduth
Copy link
Member

@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
Member

@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
3 of 4 checks passed
@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