-
Notifications
You must be signed in to change notification settings - Fork 44
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
Alert
- don't use role or aria-live for non-valid alert usages (HDS-3919)
#2500
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This comment was marked as outdated.
This comment was marked as outdated.
Alert
- don't use role=alert or aria-live for non-valid alert types ("colors") (HDS-3919)Alert
- don't use role=alert or aria-live for non-valid alert usages (HDS-3919)
Alert
- don't use role=alert or aria-live for non-valid alert usages (HDS-3919)Alert
- don't use role or aria-live for non-valid alert usages (HDS-3919)
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
aecb5f3
to
4957686
Compare
@KristinLBradley Toasts, from a UX perspective, behave differently. For a neutral/highlight toast, a user may need to still need to be aware of it even if it's simply communicating a "process has started." Especially because a Toast is considered "temporary" (either times out or is dimissed). I do not believe anyone currently uses it for promotional purposes (nor should they ever) as they are never contextual. So I think the two are different use cases. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a couple of minor, non-blocking comments. Apart from that, great PR. 🙌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. Nice test additions, too. I think that the boolean for the alert could be thought about a little more but I don't consider it a blocker. Naming things is hard.
…ate and fix tests
bffbad8
to
9b35f4a
Compare
Co-authored-by: Andrew Gendel <124841193+andgen404@users.noreply.github.com> Co-authored-by: Melanie Sumner <melanie@hashicorp.com> Co-authored-by: Heather Larsen <hlarsen@hashicorp.com>
STATUS:
📌 Summary
If merged, this PR changes the
Alert
to not set a default role or aria-live value for "neutral" or "highlight" alerts.👉 Docs branch: NEW - #2509
(OLD -
#2507)🔗 External links
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.