Skip to content

Commit

Permalink
"Version-6.4.0" release (#562)
Browse files Browse the repository at this point in the history
* Fix Milestones responsiveness on SignupScreen (#560)

* Add styles for regular P and A tags in SignupForm (#561)

* Add styles for regular P and A tags in SignupForm

* Update SignupForm stories
  • Loading branch information
bernardodiasc authored Jul 21, 2020
1 parent 1f868f4 commit 329628a
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 28 deletions.
32 changes: 16 additions & 16 deletions lib/all.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/all.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions lib/registration.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/registration.js.map

Large diffs are not rendered by default.

34 changes: 27 additions & 7 deletions src/components/ui/SignupForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,36 @@
import React from 'react'
import cmz from 'cmz'

import { breakpoints } from '../../styles/theme'
import theme, { breakpoints } from '../../styles/theme'
import typo from '../../styles/typo'

const cx = {
form: cmz(`
width: 500px
max-width: 100%
margin: 0 auto
flex: 1
`),
form: cmz(
typo.baseText,
`
& {
width: 500px
max-width: 100%
margin: 0 auto
flex: 1
font-size: 16px
line-height: 1.4
color: ${theme.typoGrayed}
}
& p {
margin: 12px 0
}
& a {
color: ${theme.typoGrayed}
}
& a:hover {
text-decoration: none
}
`
),

padded: cmz(`
& {
Expand Down
24 changes: 24 additions & 0 deletions src/components/ui/SignupForm.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,30 @@ storiesOf('UI Components|SignupForm/Debug', module)
</SignupForm>
</Body>
))
.add('with paragraphs', () => (
<Body>
<SignupForm
title='Work Experience'
hasPadding
>
<InputSection
headline='Lorem ipsum dolor sit amet'
description='Sed dui metus, pretium vel justo at, malesuada viverra sapien.'
>
<InputField placeholder='Input field' />
</InputSection>
<InputSection
headline='Lorem ipsum dolor sit amet'
description='Sed dui metus, pretium vel justo at, malesuada viverra sapien.'
>
<InputField type='textarea' placeholder='Textarea field' />
</InputSection>
<Button block wide size='large'>Continue »</Button>
<p>Thi is an example of how a regular P tag looks like.</p>
<p><a href='https://x-team.com/blog/privacy-policy/' target='_blank' rel='nofollow'>And this is how an A tag looks like.</a></p>
</SignupForm>
</Body>
))
.add('missing props', () => (
<SignupForm />
))
3 changes: 2 additions & 1 deletion src/components/ui/SignupScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const cx = {
`),

milestones: cmz(`
width: 500px
width: 100%
max-width: 500px
padding: 32px 0 24px
margin: 0 auto
`),
Expand Down

0 comments on commit 329628a

Please sign in to comment.