Skip to content

Commit

Permalink
Merge pull request #1705 from sharoonthomas/issue-562
Browse files Browse the repository at this point in the history
[Card] Add example for card with footer action + plain button
  • Loading branch information
chloerice authored Jun 21, 2019
2 parents 18cdbfa + a07e5a0 commit 88075ad
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Use [the changelog guidelines](https://git.io/polaris-changelog-guidelines) to f

- Mentioned that the Contextual Save Bar is now available for embedded apps through App Bridge directly [#1721](https://github.com/Shopify/polaris-react/pull/1721)
- Mentioned Polaris icons in the Icon component documentation ([#1693](https://github.com/Shopify/polaris-react/pull/1693))
- Added an example to `Card` for custom action layout with a secondary action and a plain button ([#1705](https://github.com/Shopify/polaris-react/pull/1705))

### Development workflow

Expand Down
24 changes: 24 additions & 0 deletions src/components/Card/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,30 @@ When multiple secondary footer actions are provided, they will render in an acti
</Card>
```

### Card with custom footer actions

<!-- example-for: web -->

Use to present actionable content that is optional or not the primary purpose of the page.

```jsx
<Card title="Secure your account with 2-step authentication">
<Card.Section>
<Stack spacing="loose" vertical>
<p>
Two-step authentication adds an extra layer of security when logging in
to your account. A special code will be required each time you log in,
ensuring only you can access your account.
</p>
<ButtonGroup>
<Button>Enable two-step authentication</Button>
<Button plain>Learn more</Button>
</ButtonGroup>
</Stack>
</Card.Section>
</Card>
```

### Card with destructive footer action

<!-- example-for: web -->
Expand Down

0 comments on commit 88075ad

Please sign in to comment.