Contextual alerts

Purpose

Users need to be aware of important information related to their current activity.

Description

  • Contextual alerts are positioned above the area or form they relate to
  • They are often triggered by a user interaction
  • They can be closable and can have other action buttons or links.
  • Alerts with low importance (info or success) can close automatically after 5 seconds (if desired)
  • Alerts with high importance (warning or danger) should not close automatically, unless the situation has been resolved in some other way

Types:

  • Info alerts should be used when there are tips or information that a user can benefit from.
  • Success alerts should be used when an action was performed successfully.
  • Warning alerts should be used when an action is out of the ordinary or might not be desired.
  • Danger alerts should be used when the system has failed to perform an action, or when the user has made an error.
Press the 'A' key to automatically assign a case.
Case assigned to Jerry.
Case assigned to Jerry.
There are more than 10 cases assigned to John.
There was a network error assigning case 90/934,382.
Please fix the 3 errors.
<div class="alert alert-info">
    <button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <i class="alert-icon-info alert-icon"></i> Press the <strong>'A'</strong> key to automatically assign a case.
</div>
<div class="alert alert-success">
    <button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <button class="btn btn-sm btn-link alert-link pull-right">Undo</button>
    <i class="alert-icon-success alert-icon"></i> Case assigned to <strong>Jerry</strong>.
</div>
<div class="alert alert-success">
    <button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <i class="alert-icon-success alert-icon"></i> Case assigned to <strong>Jerry</strong>.
</div>
<div class="alert alert-warning">
    <button type="button" class="close"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
    <i class="alert-icon-warning alert-icon"></i> There are more than <strong>10</strong> cases assigned to <strong>John</strong>.
</div>
<div class="alert alert-danger">
    <button class="btn btn-sm btn-link alert-link pull-right">Retry</button>
    <i class="alert-icon-danger alert-icon"></i> There was a network error assigning case <strong>90/934,382</strong>. 
</div>
<div class="alert alert-danger">
    <i class="alert-icon-danger alert-icon"></i> Please fix the 3 errors.
</div>

System notifications

Purpose

Users need to be aware of important information related to the system.

Description

  • System notifications appear in in the top right corner of the screen
  • They are usually triggered by events unrelated to the user’s interactions
  • They can be closable and can have other action buttons or links.
  • Notifications with low importance (info or success) can close automatically after 5 seconds (if desired)
  • Notifications with high importance (warning or danger) should not close automatically, unless the situation has been resolved in some other way

Types:

  • Info notifications can be used for general messages that aren’t particularly critical
  • Success notifications can be used for positive messages that don’t have a context to associate it with
  • Warning notifications can be used for messages that likely require attention
  • Danger notifications can be used for critical messages that require immediate attention
Message sent to Jerry.
Jerry added a comment to one of your cases (90/098,881).
Case 90/842,381 is due tomorrow.
Connection has been lost. Retrying in 30 seconds.
<div class="toast-list">
    <div class="toast toast-warning">
        <div class="toast-content">
            <button type="button" class="close">
                <span>&times;</span>
            </button>
            <span>Case 90/842,381 is due tomorrow.</span>
        </div>
        <div class="toast-actions">
            <button type="button" class="btn btn-link">View case</button> 
            <button type="button" class="btn btn-link">Snooze <span class="caret"></span></button> 
        </div>
    </div>
</div>