Skip to content

Design Style Guide

Jennifer Marx edited this page Jan 19, 2017 · 23 revisions
  1. Buttons
  2. Modals
  3. Popovers
  4. Progress/Loading
  5. Tabs
  6. Tables
  7. Tooltips
  8. References

Buttons

Purpose: Triggers an action and it can contain a label and/or an icon.

  • Four button styles:

    • Default, the general button style.

    • Primary, indicates the critical, or most important action on a form/page.

    • Warning, indicates an action that may have some side effects, such as giving a user admin access.

    • Danger, indicates a dangerous, generally destructive action, such as deleting.

  • Four different button sizes:

    • Large, use the btn-lg class.

    • Default, no extra classes necessary.

    • Small, use the btn-sm class.

    • Extra small, use the btn-xs class.

  • Use btn-icon-only for buttons with only an icon in it, optimizes padding.

  • Button can be grouped together to show associations and improve clarity. They can be sized using the btn-group-lg, btn-group-sm, and btn-group-xs classes.

  • Toggle buttons can be toggled between active or not active. Add the active class and the aria-pressed="true" attribute.

Bootstrap Buttons

Modals

Purpose: A focused view is needed and disrupting the page flow is not prohibitive. Used for managing settings, editing/creating simple objects, or confirming an action.

Modal Description

  • For interactions that are relatively quick.
  • Use sparingly and consider if an in-page solution is better with a hide/show form/text. (Modals don't work well on tablet and mobile devises).
  • Escape should close the window.
  • Allow exiting by clicking on background (outside of modal window).
  • Open modals with a click action.

Modal Header / Title Bar

  • Clear and descriptive title which explains modal's purpose.
  • Sentence case title.
  • Dismiss (X) icon in top right.

Modal Content

  • Contains text or UI controls focused on a particular task, process, or entity.
  • Scroll independently depending on the content, creating a pinned header/footer.

Modal Footer

  • Contains action buttons.

  • Primary action buttons are right aligned.

  • Cancel/previous buttons are left aligned.

  • Use button styles that match the actions/priority, but if there more than two buttons with similar actions/priority, use the default button style for them all.

  • Buttons should use action verbs that describe by themselves what will happen on click (e.g., ‘Delete user’ instead of ‘Ok’).

Bootstrap Modals

Angular UI Bootstrap Modals

Popovers

Purpose: Access additional related information or functionality without a change in context. Requires more text/info than a tooltip.

Popover Description

  • Smaller contextual dialogs that are generally triggered by a click.
  • Display information or functionality related to a particular item or control.
  • Dismissed via a close icon, clicking the control that opened it, or by clicking anywhere outside of the popover.
  • Content in a popover should be relatively short, but they can be scrollable if necessary.
  • Should be positioned based on the screen space available.

Popover Header / Title Bar

  • Not required.
  • Clear and descriptive title which explains modal's purpose.
  • Sentence case title.
  • Dismiss (X) icon in top right.

Popover Content

  • Contains text or UI controls focused on a particular task, process, or entity.

  • Scroll independently depending on the content, creating a pinned header/footer.

Bootstrap Popovers

Angular UI Bootstrap Popovers

Tabs

Purpose: Flip (transition) between multiple focused panes/views of content because only one pane should be viewed at a time.

  • Listed in a horizontal row.
  • Avoid overflowing tab titles to new lines.
  • Tab titles should be short and predictable.

Bootstrap Tabs

Angular UI Bootstrap Tabs

Tooltips

Purpose: Need additional, optional information. Note, there is a custom refinery-tooltip directive available.

Tooltip Description

  • Tooltips provide information when an element is hovered over.
  • Tooltips are attached to an element and appear when the element is hovered over.
  • The show and hide delays of a tooltip may vary depending on the need, but the default is 200ms to show and 0ms to hide.
  • Tooltips cannot be interacted with.

Bootstrap Tooltips

Angular UI Bootstrap Tooltips

References

Clone this wiki locally