Notice

Use to communicate change, provide feedback as a result of a user’s action or to convey information regarding a potential action.

Description

This component should clearly and succinctly convey the main message, and if applicable, guide the user on the consequence or the best action the user can take next, but without overtaking the page or disrupting the user from performing actions on the page.

They can be either static, dismissable or automatically removed after a fixed period of time.

Notice bars are not “sticky”, so as the user scrolls down, it may disappear out of view. Both static and animated bars will load with the page, so they should show immediately once the page is loaded.

N.B when all variants of this notice component have been built it will be used instead of the current notification component, which is a candidate component that will be deprecated over time in favour of the notice.

Status variations (see subcategories for usage examples and descriptions): All status modifier classes are added to the parent notice component notice notice--<status-modifier>.

  • Default (general information)
  • Success - use this to convey something was successfully completed or changed to the user. Usually success and confirmations are straight-forward, so they should be one-line, short and sweet.
  • Error/failure - use this to convey something was unsuccessful, and requires immediate attention or action. Choose static or temporary animated appropriately based on use case. Try not to have vague copy like “Something went wrong”, but rather informational and actionable copy.
  • Attention/warning - use this to convey to the user that there is an issue that requires attention, such as a warning or note, that might not require immediate action.
  • Action - use this to convey to the user that an action is required. This variant can contain CTAs to induce users to take certain actions, such as navigation. CTA's can live inline in the copy as a text link, or below the notification copy as a primary CTA or CTA combo.
Layout and size variations

All modifier classes are added to the parent notice component notice notice--<modifier>.

  • Default - spans full width of the parent container
  • Compact - width determined by the content of the notice, rather than the width of the parent element. For notices that require less prominance/attention. Often used to highlight the result of a user action e.g. uploading a document, saving progress in an application or loss of connection.
  • Small - the small modifier class can be added with any icon to give it a smaller appearance. The icon, title, and text will all display at a smaller font size than the rest of the icons (uses the font(small) mixin)
  • Spacious - the spacious modifier class can be added to notice components without an icon that require additional whitespace around the copy for a more spacious feel.
To avoid “alert fatigue” (where user starts ignoring alerts and notifications because they see it frequently), please only use a notification bar when it requires user’s attention or action on something.

N.B. When all variants have been built - this component will replace the notification component that is a currently a candidate component and the notification component will be deprecated.

Activate Sass component

In order to have the styling of this component available, you need to include it in your project. After including the Radius library in your main ./index.scss file, add this snippet:

@include radius-component-notice;

Link to Abstract/Sketch file

Download Sketch / Abstract file

Usage

Usage example

Status variations

notice--error

Secured and encryped to keep your data safe

notice--success

Secured and encryped to keep your data safe

notice--attention

Secured and encryped to keep your data safe

notice--action

Secured and encryped to keep your data safe

Layout variations

notice--compact

Secured and encryped to keep your data safe

notice--small

Secured and encryped to keep your data safe.

notice--spacious

Secured and encryped to keep your data safe. For use when the icon requires additional space around the copy.
Secured and encryped to keep your data safe. For use when the icon requires additional space around the copy.

Message only

Secured and encryped to keep your data safe

<!-- default -->
<div class="notice">
  <div class="notice__content">
    <div class="notice__copy">
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>

Message with title

Some title

Secured and encryped to keep your data safe

<div class="notice">
  <div class="notice__content">
    <div class="notice__copy">
      <h6 class="notice__title">Some title</h6>
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>

Message & icon

N.B.replace fragment identifier in the `use` element with the appropriately named icon ID for your purposes. See icons library for the full icon library and all the available icons.

Secured and encryped to keep your data safe

notice--error

Secured and encryped to keep your data safe

notice--success

Secured and encryped to keep your data safe

notice--attention

Secured and encryped to keep your data safe

<!-- Default -->
<div class="notice">
  <div class="notice__content">
    <svg class="notice__support-icon svg-icon svg-icon--cutout">
      <use xlink:href="https://dgnvhpcjbd3ba.cloudfront.net/radius/15.3.16/icons/svg-sprite.svg#info-circle-solid"></use>
    </svg>
    <div class="notice__copy">
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>


<!-- Status type: error -->
<div class="notice notice--error">
  <div class="notice__content">
    <svg class="notice__support-icon svg-icon svg-icon--cutout">
      <use xlink:href="https://dgnvhpcjbd3ba.cloudfront.net/radius/15.3.16/icons/svg-sprite.svg#cross-circle-solid"></use>
    </svg>
    <div class="notice__copy">
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>


<!-- Status type: success -->
<div class="notice notice--success">
  <div class="notice__content">
    <svg class="notice__support-icon svg-icon svg-icon--cutout">
      <use xlink:href="https://dgnvhpcjbd3ba.cloudfront.net/radius/15.3.16/icons/svg-sprite.svg#tick-circle-solid"></use>
    </svg>
    <div class="notice__copy">
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>


<!-- Status type: attention -->
<div class="notice notice--attention">
  <div class="notice__content">
    <svg class="notice__support-icon svg-icon ">
      <use xlink:href="https://dgnvhpcjbd3ba.cloudfront.net/radius/15.3.16/icons/svg-sprite.svg#info-circle-outline"></use>
    </svg>
    <div class="notice__copy">
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>

Message, title & icon

Some title

Secured and encryped to keep your data safe

<div class="notice">
  <div class="notice__content">
    <svg class="notice__support-icon svg-icon svg-icon--cutout">
      <use xlink:href="https://dgnvhpcjbd3ba.cloudfront.net/radius/15.3.16/icons/svg-sprite.svg#info-circle-solid"></use>
    </svg>
    <div class="notice__copy">
      <h6 class="notice__title">Some title</h6>
      <p >Secured and encryped to keep your data safe</p>
    </div>
  </div>
</div>

CTA

It looks like you already have an account with us. Get a secure link emailed that will log you in instantly, or use your password.

<div class="notice notice--action notice--spacious">
  <div class="notice__content">
    <div class="notice__copy">
      <p class="u-mb-x-small">It looks like you already have an account with us.
Get a secure link emailed that will log you in instantly, or use your password.</p>
      <div class="cta-combo cta-combo--minor">
        <a class="cta-primary cta-combo__primary cta--minor" href="#">Primary CTA</a>
        <span class="cta-combo__secondary-wrap">or<a class="cta-link cta-combo__secondary" href="#">Link to</a>
        </span>
      </div>
    </div>
  </div>
</div>