Solid
Button description test
here
Outline
Outline (ghost) button description
Link
Link button description
Reversed
Reversed button description
Sizes
Sizes description
Block-level
Block-level description
Button Icons
Buttons with icons description
Disabled
Disabled description
Usage
Rule
What is the reason to use this…
Constraint
What are the limitations/boundaries…
Principle
Why do we use this…
Accessibility
When using button classes on <a>
elements that are used to trigger in-page functionality (like collapsing content), rather than linking to new pages or sections within the current page, these links should be given a role="button"
to appropriately convey their purpose to assistive technologies such as screen readers.
When using icons in the button you‘ll likely want to add aria-hidden="true"
to the icon so that it isn‘t visible to assistive technology.
Class Names
btn Required |
Apply to the element ( |
btn-primary Modifier |
Add to the |
btn-secondary Modifier |
Add to the |
btn-primary-outline Modifier |
Add to the |
btn-secondary-outline Modifier |
Add to the |
btn-link Modifier |
Add to the |
btn-link-simple Modifier |
Add to the |
btn-reversed Modifier |
Add to the |
btn-reversed-outline Modifier |
Add to the |
btn-lg Modifier |
Add to the |
btn-sm Modifier |
Add to the |
btn-xs Modifier |
Add to the |
btn-block Modifier |
Add to the |
btn-block-sm Modifier |
Add to the |
disabled Modifier |
Add to the |
btn-icon-text Modifier |
When using an icon within a |
- Last updated December 15, 2017
- Authorable- Yes
- Core: Button Styles