Skip to content

Commit

Permalink
docs(button): update button docs to include new danger variant examples
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderLyon committed Oct 27, 2020
1 parent a38cf3d commit 4292b0f
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/react/src/components/Button/Button.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ user interacts with it.
## Icon-only Buttons

Icon buttons allow users to take actions, and make choices, with a single tap.
Icon buttons can take the form of any of the five types (Primary, Secondary,
Tertiary, Danger and Ghost) but most commonly will be styled as primary or ghost
Icon buttons can take the form of any of the seven types (Primary, Secondary,
Tertiary, Danger, Danger tertiary, Danger ghost and Ghost) but most commonly will be styled as primary or ghost
buttons.

<Preview>
Expand Down Expand Up @@ -161,14 +161,15 @@ button is interacted with.
### Button `kind`
Carbon has five types of buttons, `primary`, `secondary`, `tertiary`, `ghost`,
and `danger`. If no `kind` is specified, a `primary` button will be rendered.
Carbon has seven types of buttons, `primary`, `secondary`, `tertiary`, `ghost`,
`danger`, `danger-tertiary`, and `danger-ghost`. If no `kind` is specified, a `primary` button will be rendered.
For more information on when to use each variant, check out the
[design documentation](https://www.carbondesignsystem.com/components/button/usage#overview)
<Button>Primary</Button> <Button kind="secondary">Secondary</Button> <Button kind="tertiary">
Tertiary{' '}
</Button> <Button kind="danger">Danger</Button> <Button kind="ghost">
</Button> <Button kind="danger">Danger</Button> <Button kind="danger-tertiary">Danger Tertiary</Button>
<Button kind="danger-ghost">Danger Ghost</Button> <Button kind="ghost">
Ghost
</Button>
Expand All @@ -177,6 +178,8 @@ For more information on when to use each variant, check out the
<Button kind="secondary">Secondary</Button>
<Button kind="tertiary">Tertiary</Button>
<Button kind="danger">Danger</Button>
<Button kind="danger-tertiary">Danger Tertiary</Button>
<Button kind="danger-ghost">Danger Ghost</Button>
<Button kind="ghost">Ghost</Button>
```
Expand Down

0 comments on commit 4292b0f

Please sign in to comment.