For an optional user action
<dl>
<dt>States</dt>
<dd>
<dl>
<dt><code><button></code></dt>
<dd>
<button class="c-button c-button--secondary
">
default
</button>
<button class="c-button c-button--secondary
" disabled>
disabled-attr
</button>
<button class="c-button c-button--secondary c-button--is-busy
" disabled>
--is-busy
</dd>
<dt><code><a></code></dt>
<dd>
<a href="#" class="c-button c-button--secondary
">
default
</a>
<a disabled tabindex="-1" href="#" class="c-button c-button--secondary
">
disabled-attr
</a>
<a href="#" class="c-button c-button--secondary c-button--is-busy
" disabled tabindex="-1">
--is-busy
</a>
</dd>
</dl>
<dd>
<dt>Icons</dt>
<dd>
<dl>
<dt><code><button></code></dt>
<dd>
<button class="c-button c-button--secondary
">
<i class="icon icon-push-right" aria-description="validate input">…</i>
__icon--before
</button>
<button class="c-button c-button--secondary
">
__icon--after
<i class="icon icon-new-browser" aria-description="exit page">X</i>
</dd>
<dt><code><a></code></dt>
<dd>
<a href="#" class="c-button c-button--secondary
">
<i class="icon icon-push-right" aria-description="validate input">…</i>
__icon--before
</a>
<a href="#" class="c-button c-button--secondary
">
__icon--after
<i class="icon icon-new-browser" aria-description="exit page">X</i>
</a>
</dd>
</dl>
<dd>
<dt>Width</dt>
<dd>
<dl>
<dt><code><button></code></dt>
<dd>
<button class="c-button c-button--secondary c-button--width-short ">
--width-short
</button>
<button class="c-button c-button--secondary c-button--width-medium ">
--width-medium
</button>
<button class="c-button c-button--secondary c-button--width-long ">
--width-long
</dd>
<dt><code><a></code></dt>
<dd>
<a href="#" class="c-button c-button--secondary c-button--width-short ">
--width-short
</a>
<a href="#" class="c-button c-button--secondary c-button--width-medium ">
--width-medium
</a>
<a href="#" class="c-button c-button--secondary c-button--width-long ">
--width-long
</a>
</dd>
</dl>
<dd>
<dt>Size</dt>
<dd>
<dl>
<dt><code><button></code></dt>
<dd>
<button class="c-button c-button--secondary c-button--size-small
">
--size-small
</button>
</dd>
<dt><code><a></code></dt>
<dd>
<a href="#" class="c-button c-button--secondary c-button--size-small
">
--size-small
</a>
</dd>
</dl>
<dd>
</dl>
/* This CSS is ONLY for the pattern library. It is NOT part of the pattern. */
.c-button > i {
font-style: normal;
}
{
"shouldSkipPattern": true,
"bootstrap4Styles": [
{
"isInternal": true,
"layer": "foundation",
"path": "/assets/core-styles.bootstrap4.css"
}
],
"globalStyles": [
{
"isInternal": true,
"layer": "base",
"path": "/assets/core-styles.demo.css"
},
{
"isInternal": true,
"layer": "base",
"path": "/assets/core-styles.base.css"
}
],
"cmsStyles": [
{
"isInternal": true,
"layer": "base",
"path": "/assets/core-styles.cms.css"
}
],
"docsStyles": [
{
"isInternal": true,
"layer": "base",
"path": "/assets/core-styles.docs.css"
}
],
"portalStyles": [
{
"isInternal": true,
"layer": "base",
"path": "/assets/core-styles.portal.css"
}
],
"subdir": "components",
"supports": {
"states": true,
"icons": true,
"width": true,
"size": true,
"size-small": true,
"link-tag": true
},
"supportStyles": [
"../../assets/components/cortal-icon.css"
]
}