@zendeskgarden/css-buttons

8.0.3 • Public • Published

@zendeskgarden/css-buttons npm version

This package contains basic .c-btn component styling.

Installation

npm install @zendeskgarden/css-buttons

Usage

Once installed, button CSS can be accessed via postcss-import.

@import '@zendeskgarden/css-buttons';

Button CSS is intended to enhance the following HTML.

<button class="c-btn">CLICK ME</button>

Accessibility

If you are unable to use a native HTML <button>, be sure to add the appropriate role attribute.

<a class="c-btn" href="#" role="button">LINK BUTTON</a>

Also note that the element must be able to receive focus and can be activated using either the enter or space keys. Conversely, a disabled button should not be able to receive focus.

<a class="c-btn is-disabled" href="#" role="button" tabindex="-1">DISABLED LINK BUTTON</a>

Modifications

See http://zendeskgarden.github.io/css-components/?path=/story/components-buttons for various button modification classes.

Package Sidebar

Install

npm i @zendeskgarden/css-buttons

Weekly Downloads

573

Version

8.0.3

License

Apache-2.0

Unpacked Size

31.8 kB

Total Files

10

Last publish

Collaborators

  • zendesk-garden