8000 USWDS - [site-alert]: sync variants with alert by nektro · Pull Request #6425 · uswds/uswds · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

USWDS - [site-alert]: sync variants with alert #6425

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nektro
Copy link
@nektro nektro commented Feb 26, 2025

Summary

Adds the "error", "warning", "success" style variants to site-alert. These put it in sync with the available alert styles.

Breaking change

This is not a breaking change.

Problem statement

I attempted to use the .usa-site-alert--error class in my code and was met with an uncolored gray box with no icon. upon checking https://unpkg.com/browse/@uswds/uswds@3.11.0/dist/css/uswds.css and https://unpkg.com/browse/@uswds/uswds@3.11.0/packages/usa-site-alert/src/styles/_usa-site-alert.scss I realized it was because no such class existed.

Solution

https://designsystem.digital.gov/components/alert/ and https://designsystem.digital.gov/components/site-alert/ being more in sync will cause less developer confusion and users will already be familiar with the styles.

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.

1 participant
0