mirror of
https://github.com/yldio/copilot.git
synced 2024-11-13 06:40:06 +02:00
updating base and wrapping input in Base element in storybook
This commit is contained in:
parent
a820655eb0
commit
c31d08a15c
@ -7,7 +7,8 @@ const {
|
|||||||
forms,
|
forms,
|
||||||
links,
|
links,
|
||||||
tables,
|
tables,
|
||||||
typography
|
typography,
|
||||||
|
colors
|
||||||
} = constants;
|
} = constants;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -36,7 +37,7 @@ module.exports = styled.div`
|
|||||||
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
color: #373A3C;
|
color: ${colors.fonts.regular};
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
@ -48,7 +48,7 @@ const colors = {
|
|||||||
...brandInactive,
|
...brandInactive,
|
||||||
...notifications,
|
...notifications,
|
||||||
...metrics,
|
...metrics,
|
||||||
...fonts
|
fonts
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = colors;
|
module.exports = colors;
|
||||||
|
@ -217,16 +217,20 @@ storiesOf('Radio', module)
|
|||||||
|
|
||||||
storiesOf('Input', module)
|
storiesOf('Input', module)
|
||||||
.add('Default', () => (
|
.add('Default', () => (
|
||||||
<Input placeholder="I am the placeholder" />
|
<Base>
|
||||||
|
<Input placeholder="I am the placeholder" />
|
||||||
|
</Base>
|
||||||
))
|
))
|
||||||
.add('type=email', () => (
|
.add('type=email', () => (
|
||||||
<Input
|
<Base>
|
||||||
label='Email Address'
|
<Input
|
||||||
placeholder='Enter email'
|
label='Email Address'
|
||||||
type='email'
|
placeholder='Enter email'
|
||||||
>
|
type='email'
|
||||||
<small>We'll never share your email with anyone else.</small>
|
>
|
||||||
</Input>
|
<small>We'll never share your email with anyone else.</small>
|
||||||
|
</Input>
|
||||||
|
</Base>
|
||||||
));
|
));
|
||||||
|
|
||||||
storiesOf('Modal', module)
|
storiesOf('Modal', module)
|
||||||
|
Loading…
Reference in New Issue
Block a user