Example
Open type in a new window
Code sample
<button type="submit" data-mode="icon" data-icon="arrow-right">
I’m a button!
</button>
Notes
Use the attribute: data-mode="icon" to trigger this icon-only mode, and then specify what icon you want by adding data-icon="ICON_NAME". For a full list of icons see: icons.css.
You MUST:
- specify a button label as normal. This label will be read out in screen readers.
- specify a predefined icon using the
data-icon="" attribute.
This button mode can be freely mixed with:
- Primary and Secondary schemes
- Alternate sizes