Change custom button example

This commit is contained in:
Kimmo Puputti 2017-09-21 14:16:32 +03:00
parent 1f0e1dba91
commit ac937d8e10
2 changed files with 6 additions and 6 deletions

View file

@ -19,9 +19,9 @@
height: 100px;
}
.searchIcon {
width: 16px;
height: 16px;
.customIcon {
width: 24px;
height: 24px;
stroke: #fff;
margin-right: 10px;
}

View file

@ -1,6 +1,6 @@
/* eslint-disable jsx-a11y/href-no-hash */
import React, { Component } from 'react';
import { IconSearch } from '../../components';
import { IconCheckmark } from '../../components';
import Button, { PrimaryButton, SecondaryButton, InlineTextButton } from './Button';
import css from './Button.example.css';
@ -54,8 +54,8 @@ const ButtonsComponent = () => {
<h3>Button with an icon and a text:</h3>
<Button>
<IconSearch rootClassName={css.searchIcon} />
<span>Search saunas</span>
<IconCheckmark rootClassName={css.customIcon} />
<span>Custom text</span>
</Button>
<h3>Default button:</h3>