ns-standoutcomponent's purpose is to draw attention to important information that the user will need to know.
ns-standout component to make information stand out from a page and to visually differentiate a concise block of text from the content that surrounds it, for example:
- Quotes (as in prices)
- Additional information about the page
- Emergency information
The component is not announced to screen readers upfront, to help differentiate it from ns-alert messages. It will be read in the order it comes in the document. You can choose from different coloured borders, but the text and background retain the standard colours, therefore, meeting suitable contrast ratios.
|You can choose to change the border colour from the default cyan to any of the colour options defined in the specifications.
|You can populate the content using HTML, such as headings, paragraphs, lists, and text links as required.
|Keep concise and to the point
|Fill with many paragraphs
|Limit use to 1 or 2 per page
|Overuse it everywhere - it dilutes the impact
|Use it to make information stand out
|Use it in place of ns-alert or ns-card – they have a different purpose
|Select a colour border decoration that works with your design
|Add icons, images or illustrations
|Use a relevant, single text link if it is necessary
|Use the direct ns-cta (you should consider using ns-card instead for that purpose)
|Use without an h2-h6
|Nest another ns-standout component within it
|Use without a link
|Use in a form where helper text is more appropriate
|Ensure the information is relevant and important enough to stand out from the rest of the content
|Use for warning or error messages
The ns-standout component can be used in the following components:
|Colour of border
- Can only accept a single ns-content
- Do you have insights or concerns to share? You can raise an issue via Github bugs.
- See all the issues already raised via Github issues
💩 🎉 🦄 If you have any questions, contact us on Microsoft Teams in the Nucleus Design System channels.