Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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

https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3680

Filled Variant

  • Only use the Filled variant for forms with 1 or 2 text fields

  • Only use the Filled variant for unvalidated forms

https://www.figma.com/file/eGmDp94FlqEr4iSqy1Uc1K/Paragon-2021?node-id=5234%3A3694


🌞 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%3A4216

https://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Β .sr-onlyΒ class.

  • No labels