Add a CSS component for alerts.

Review Request #10790 — Created Nov. 6, 2019 and updated

chipx86
Review Board
release-4.0.x
b12bc7e...
reviewboard

This component is used to show alert boxes that indicate an error,
warning, success, or useful information to present to the user. It's
intended as a replacement for the existing "important" box type, used
in the Permission Denied and other templates, and for messages when
saving in the administration UI.

The type used for an alert will dictate the icon shown, all of which
come from Font Awesome currently.

Alerts can contain a single paragraph of text, or multiple paragraphs
(or other content). These will be kept aligned to the right of the icon.

Used the alert in some upcoming Administration UI work, and put up a
few tests (shown in the screenshot on the review request).

Loading file attachments...

Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. Ship It!
  2. 
      
Loading...