mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Change custom button example
This commit is contained in:
parent
1f0e1dba91
commit
ac937d8e10
2 changed files with 6 additions and 6 deletions
|
|
@ -19,9 +19,9 @@
|
|||
height: 100px;
|
||||
}
|
||||
|
||||
.searchIcon {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
.customIcon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
stroke: #fff;
|
||||
margin-right: 10px;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue