DESIGN COMPLETE IMPLEMENTATION PENDING
The Alert component displays a short, important message in a way that attracts the user's attention. Alerts offer four severity levels that set a distinctive icon and color.
Contributors
Related Jira Tickets
https://openedx.atlassian.net/browse/PAR-111
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3614
π Resources
π³ Variants
Palette and State styles
Dark variant
Only use the Dark variant for unvalidated forms
Filled Variant
Only use the Filled variant for forms with 1 or 2 text fields
Only use the Filled variant for unvalidated forms
π Best Practices
Do | Use the Filled variant on forms with only 1 or 2 fields that need to stand out visually Label optional fields. See: https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3629 |
Don't | Label required fields, label optional fields instead Use the Dark or Filled variants on validated forms Use the Filled variant on forms with more than 2 fields |
β Related Components
π Specification
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A4216https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3848
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3665
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3886
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A4022
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A4109
https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3629
β Behaviors
Labels | Labels should initially appear within the text field, then animate to the outside on focus. |
π Accessibility
Focus Management Expectations | β¨ |
Semantics | Using color to add meaning only provides a visual indication, which will not be conveyed to users of assistive technologies β such as screen readers. Ensure that information denoted by the color is either obvious from the content itself (e.g. the visible text), or is included through alternative means, such as additional text hidden with theΒ |
- Jeff Witt (Deactivated)Adam Butterworth (Deactivated) Follow up here on html markup requirements