OpenGov Visual Interface Documentation

Status

Global alert

Global alerts let the user know that something happened. They're perfect for messages that don't need to interrupt the user's workflow (modals are used to block). For examples, you may need to inform the user about a configuration change, that they've gone offline, there was an error, or of a software update.

This is the title of the alert This is the content of the alert. You can include a link.

Cancel

.whoops

A negative alert

This is the title of the alert This is the content of the alert. You can include a link.

Cancel

.ftw

A positive alert

This is the title of the alert This is the content of the alert. You can include a link.

Cancel

.notice

Something you should pay attention to

This is the title of the alert This is the content of the alert. You can include a link.

Cancel
<div class="ui-alert [modifier class]">
  <p>
    <strong>This is the title of the alert</strong> This is the content of the alert. You can include a <a href="#">link.</a>
  </p>
  <div class="ui-alert__actions">
    <a>Cancel</a>
    <button class="ui-button small">Okay</button>
  </div>
</div>

Alert box

What is it for?

This is the title of the alert This is the content of the alert. You can include a link.
This is the title of the alert This is the content of the alert. You can include a link.

.whoops

A negative alert
This is the title of the alert This is the content of the alert. You can include a link.
This is the title of the alert This is the content of the alert. You can include a link.

.ftw

A positive alert
This is the title of the alert This is the content of the alert. You can include a link.
This is the title of the alert This is the content of the alert. You can include a link.

.notice

Something you should pay attention to
This is the title of the alert This is the content of the alert. You can include a link.
This is the title of the alert This is the content of the alert. You can include a link.
<div class="ui-alert-box [modifier class]">
  <span class="icon-exclamation-1"></span>
  <strong>This is the title of the alert</strong> This is the content of the alert. You can include a <a href="#">link.</a>
  <div class="ui-alert__actions">
    <button class="ui-button small">Okay</button>
  </div>
</div>
<div class="ui-alert-box [modifier class]">
  <span class="icon-exclamation-1"></span>
  <strong>This is the title of the alert</strong> This is the content of the alert. You can include a <a href="#">link.</a>
  <a class="ui-alert-box__close"></a>
</div>

Flashes

Flashes are notifications that appear on the screen, to notify the user of some kind of change, such as a change in state, the result of an action, etc.

This is a flash

In pellentesque faucibus vestibulum. With a link Nulla at nulla justo, eget luctus tortor.

.whoops

Event failed

This is a flash

In pellentesque faucibus vestibulum. With a link Nulla at nulla justo, eget luctus tortor.

.ftw

Event succeed

This is a flash

In pellentesque faucibus vestibulum. With a link Nulla at nulla justo, eget luctus tortor.

<div class="ui-flash [modifier class]">
  <span class="ui-flash__close"></span>
  <span class="ui-flash__icon icon-exclamation-1"></span>
  <div class="ui-flash__body">
    <h4>This is a flash</h4>
    <p>In pellentesque faucibus vestibulum. <a href="#">With a link</a> Nulla at nulla justo, eget luctus tortor.</p>
  </div>
</div>

Dismissable flashes

This is a flash

In pellentesque faucibus vestibulum. With a link Nulla at nulla justo, eget luctus tortor.

.whoops

Event failed

This is a flash

In pellentesque faucibus vestibulum. With a link Nulla at nulla justo, eget luctus tortor.

.ftw

Event succeed

This is a flash

In pellentesque faucibus vestibulum. With a link Nulla at nulla justo, eget luctus tortor.

<div class="ui-flash [modifier class]">
  <span class="ui-flash__icon icon-confirm-1"></span>
  <span class="ui-flash__close"></span>
  <div class="ui-flash__body">
    <h4>This is a flash</h4>
    <p>In pellentesque faucibus vestibulum. <a href="#">With a link</a> Nulla at nulla justo, eget luctus tortor.</p>
    <button class="ui-button small">Do it!</button>
  </div>
</div>

Progress bar

<div class="ui-progress">
  <div class="ui-progress__fill" style="width: 50%"></div>
</div>
<div class="ui-progress is-processing">
  <div class="ui-progress__fill"></div>
</div>