Open MCT Style Guide: Controls

Controls

Intro about controls

Standard Buttons

Use a standard button in locations where there's sufficient room and you must make it clear that the element is an interactive button element. Buttons can be displayed with only an icon, only text, or with icon and text combined.

Use an icon whenever possible to aid the user's recognition and recall. If both and icon and text are to be used, the text must be within a span with class .title-label.

Markup

<a class="s-button icon-pencil"></a>
<a class="s-button">Edit</a>
<a class="s-button icon-pencil">
    <span class="title-label">Edit</span>
</a>

Examples

Edit Edit

"Major" Buttons

Major buttons allow emphasis to be placed on a button. Use this on a single button when the user has a small number of choices, and one choice is a normal default. Just add .major to any element that uses .s-button.

Markup

<a class="s-button major">Ok</a>
<a class="s-button">Cancel</a>

Example

Ok Cancel

Button Sets

Use button sets to connect buttons that have related purpose or functionality. Buttons in a set round the outer corners of only the first and last buttons, any other buttons in the middle simply get division spacers.

To use, simply wrap two or more .s-button elements within .l-btn-set.

Markup

<span class="l-btn-set">
    <a class="s-button icon-magnify"></a>
    <a class="s-button icon-magnify-in"></a>
    <a class="s-button icon-magnify-out"></a>
</span>

Example