JudicialCouncilOfCalifornia / courtyard

Judicial Council Pattern Library
GNU General Public License v2.0
6 stars 5 forks source link

Button Styles #45

Open slowbot opened 5 years ago

slowbot commented 5 years ago

Implementation

The examples demonstrate how to use button elements. To use a button style on a link, add the usa-button class to your link.

To use a different style button on your link, add the special button class in addition to usa-button:

For example, a secondary button style would use the following code: <a class="usa-button usa-button-secondary" href="/my-link">My button</a>

Accessibility

Usability

When to use

jacine commented 5 years ago

Questions

  1. Are there plans to create a Twig component for this? Currently, the component seems FPO, and I don't anticipate using it for <input type="submit" />, but I could see it being useful for <button>, in the context of the Modal, Read More, and even Header Nav components.
  2. I noticed the JIRA issue for this references a "Text Button", though I'm not sure what that is.
  3. Also wondering if there will be a "Link button" component.

Thanks!

slowbot commented 5 years ago
  1. Created button component
  2. Refers to Unstyled class for button
  3. Adding link button component