Skip to content

Commit

Permalink
feat(signup): add input placeholders, fix mobile password dot sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
schnogz committed May 9, 2022
1 parent 0159e3a commit c020291
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/blockchain-info-components/src/Form/PasswordInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import styled from 'styled-components'

import { selectBorderColor, selectFocusBorderColor } from './helper'

// font family needs to differ between input and placeholder due to Inter font family issue
// https://github.com/rsms/inter/issues/112
const BasePasswordInput = styled.input.attrs((props) => ({
'data-lpignore': props.noLastPass,
disabled: props.disabled,
Expand All @@ -14,17 +16,16 @@ const BasePasswordInput = styled.input.attrs((props) => ({
width: 100%;
height: 48px;
min-height: 48px;
padding: 6px 12px;
box-sizing: border-box;
font-family: sans-serif;
font-size: 20px;
font-weight: 500;
padding: 6px 12px;
box-sizing: border-box;
color: ${(props) => props.theme.grey800};
background-color: ${({ theme }) => theme.white};
background-image: none;
outline-width: 0;
user-select: text;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
border-radius: 8px;
border: ${({ borderColor, theme }) => `1px solid ${theme[borderColor]}`};
Expand All @@ -36,6 +37,8 @@ const BasePasswordInput = styled.input.attrs((props) => ({
}
&::placeholder {
color: ${(props) => props.theme.grey400};
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 14px;
font-weight: 500;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const SignupForm = (props: Props) => {
component={TextBox}
data-e2e='signupEmail'
name='email'
placeholder='Enter Email'
validate={[required, validEmail]}
/>
</FormItem>
Expand All @@ -98,6 +99,7 @@ const SignupForm = (props: Props) => {
component={PasswordBox}
data-e2e='signupPassword'
name='password'
placeholder='Enter Password'
validate={[required, validStrongPassword]}
/>
</FormItem>
Expand Down Expand Up @@ -166,6 +168,7 @@ const SignupForm = (props: Props) => {
component={PasswordBox}
data-e2e='signupConfirmPassword'
name='confirmationPassword'
placeholder='Enter Password'
validate={[required, validatePasswordConfirmation]}
/>
</FormItem>
Expand Down

0 comments on commit c020291

Please sign in to comment.