Skip to content

Commit

Permalink
feat: add email icon
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonjoseph committed May 28, 2019
1 parent 2128f7d commit b2859e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/example/src/pages/components/ImageCard.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ The `<ImageCard>` component should generally be used inside of a `<Row>` and `<C
| aspectRatio | string | | `1:1` | Set card aspect ratio, default is `1:1`, options are `1:1`, `16:9`, `4:3`, `2:1`, `1:2` |
| subTitle | string | | | Smaller title in bottom left of card |
| title | string | | | Large title |
| actionIcon | string | | | Action icon, default is no icon, options are `Launch`, `ArrowRight`, `Download` |
| actionIcon | string | | | Action icon, default is no icon, options are `Launch`, `ArrowRight`, `Download`, `Disabled`, `Email` |
| titleColor | string | | `light` | Set title text color, default is `light`, options are `light` or `dark` |
| subTitleColor | string | | `light` | Set sub title text color, default is `light`, options are `light` or `dark` |
| iconColor | string | | `light` | Set icon color, default is `light`, options are `light` or `dark` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ export default class ImageCard extends React.Component {
{actionIcon === 'download' && !disabled ? (
<Download20 aria-label="Download" />
) : null}
{actionIcon === 'email' && !disabled ? (
<Email20 aria-label="Email" />
) : null}
{actionIcon === 'disabled' || disabled === true ? (
<Error20 aria-label="disabled" />
) : null}
Expand Down

0 comments on commit b2859e1

Please sign in to comment.