6 buttons Buttons
These button classes can be added to buttons, inputs, or links. Size classes and theme classes can be combined.
Markup: ../../../../../styleguide/styleguide-examples/button.njk
<div class="sumo-button-wrap in-styleguide">
<a href="#" class="sumo-button ">Link</a>
<button class="sumo-button ">Button Element</button>
<input type="submit" class="sumo-button " value="input[type='submit']"/>
</div>
../kitsune/sumo/static/sumo/scss/base/forms/_buttons.scss, line 4
6.1 buttons.button-wrap Button Wrap element
The .mzp-c-button-wrap class can be applied to a wrapper around a group of
buttons or inline fields. It applies a flexbox context with justify-content: flex-start;,
so the default layout is to justify buttons to the left. Modifier classes
can be added to change various layout properties.
In addition to the modifier classes that can be added to the .mzp-c-button-wrap
element, .push-right, .push-left, and .last-on-mobile classes can be
added to buttons to break items away from the defaults.
In most cases, the preferred combination is .mzp-c-button-wrap.align-full, with
the primary action ("Save" or "Submit", for example) being listed first so
it appears on the left, with the optional secondary action ("Cancel") appearing
on the right. There are exceptions to this rule, so the utility classes below
can be used to create various combinations.
Markup: ../../../../../styleguide/styleguide-examples/button-wrap.njk
<div class="sumo-button-wrap in-styleguide ">
<button class="sumo-button primary-button">Submit</button>
<button class="sumo-button secondary-button">Clear</button>
</div>
../kitsune/sumo/static/sumo/scss/base/forms/_button-wrap.scss, line 4