Callout vs Alert Component #3862
-
The documentation on the Callout page states "Do not use a Callouts to tell users about a system-level issue; use an Alert instead." I do not understand why though. These components look almost identical. Aside from name labelling, what is the advantage of following this guidance? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Disclaimer: This is a very experimental bot using OpenAI's GPT-4. The answers may not be correct, a human will review the answer and update it if necessary. The guidance to use an Alert instead of a Callout for system-level issues is rooted in the importance and urgency of the information being conveyed, as well as accessibility considerations. While Callouts and Alerts might look similar visually, they serve different purposes and are treated differently by assistive technologies like screen readers.
Following this guidance ensures that critical system-level information is communicated effectively and accessibly to all users, including those using assistive technologies. It helps maintain a clear distinction between system-level alerts that require immediate attention and other important but less urgent information that can be conveyed through Callouts. For more details, you can visit the documentation pages: I also did a search, and I managed to find these other Discussions that might be similar or related to your question. Give them a read to see if they answer your question. If they do, head back here and update this discussion and mark it as answered, pointing others to the related discussion:
|
Beta Was this translation helpful? Give feedback.
-
Hey @cogwizzle ! Agreed, they're too visually similar right now. We've got it in our backlog to update Callout, and make sure it's clearly visually distinct from Alert (see "Callout component, refined" here: https://paste.twilio.design/roadmap#2024-06-25-candidate). ^ PasteBot explains why they're different, and there's some more info on the Alert accessibility section about the ARIA role Alerts get (which Callouts do not): https://paste.twilio.design/components/alert#accessibility |
Beta Was this translation helpful? Give feedback.
Yeah, they used to be much more different—Alerts had darker background colors and borders, and looked more like banners. When we update the design of Alert + Callout, we'll probably shift Alert back to looking more like a banner than just a block of color + text like it looks now.