Notification provide the user with feedback about various system processes that are occurring.
Inline notifications appear near an interactive element and describe the status of the action taken usually to indicate an error has occurred. They must be dismissed or eliminated by taking action.
Types:
<div class="alert alert-info" role="alert">
<button type="button" class="close">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<i class="fa fa-info-circle" aria-hidden="true"></i> Press the <strong>'A'</strong> key to automatically assign a case.
</div>
<div class="alert alert-success" role="alert">
<button type="button" class="close">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<button class="btn btn-sm btn-link alert-link pull-right">Undo</button>
<i class="fa fa-check" aria-hidden="true"></i> Case assigned to <strong>Jerry</strong>
</div>
<div class="alert alert-success" role="alert">
<button type="button" class="close">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<i class="fa fa-check" aria-hidden="true"></i> Case assigned to
<strong>Jerry</strong>
</div>
<div class="alert alert-warning" role="alert">
<button type="button" class="close">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<i class="fa fa-exclamation-triangle" aria-hidden="true"></i> There are more than <strong>10</strong> cases assigned to <strong>John</strong>
</div>
<div class="alert alert-danger" role="alert">
<button class="btn btn-sm btn-link alert-link pull-right">Retry</button>
<i class="fa fa-times-circle" aria-hidden="true"></i> There was a network error assigning case
<strong>90/934,382</strong>
</div>
<div class="alert alert-danger" role="alert">
<i class="fa fa-times-circle" aria-hidden="true"></i> Please fix the 3 errors
</div>
System notifications (Toast Notifications) appear in the top-right of the screen to display short messages about a process happening in the background of a system and not necessarily tied to a preceding action. They are time based and disappear on their own.
Types:
<div class="toast-list">
<div class="toast toast-warning">
<div class="toast-content">
<button type="button" class="close">
<span>×</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>