Update add custom token button label font size, fix token item padding, update manage tokens modal title font size

This commit is contained in:
Mikhail Mikheev 2019-09-27 18:18:47 +04:00
parent 3c777fac94
commit 86cebf604b
4 changed files with 12 additions and 7 deletions

View File

@ -42,7 +42,7 @@ const Tokens = (props: Props) => {
return (
<>
<Row align="center" grow className={classes.heading}>
<Paragraph className={classes.manage} noMargin weight="bolder">
<Paragraph size="xl" noMargin weight="bolder">
Manage Tokens
</Paragraph>
<IconButton onClick={onClose} disableRipple data-testid={MANAGE_TOKENS_MODAL_CLOSE_BUTTON_TEST_ID}>

View File

@ -143,6 +143,7 @@ class Tokens extends React.Component<Props, State> {
size="small"
color="primary"
className={classes.add}
classes={{ label: classes.addBtnLabel }}
onClick={switchToAddCustomTokenScreen}
testId={ADD_CUSTOM_TOKEN_BUTTON_TEST_ID}
>
@ -161,7 +162,7 @@ class Tokens extends React.Component<Props, State> {
const isActive = activeTokensAddresses.has(token.address)
return (
<ListItem key={token.address} className={classes.token}>
<ListItem key={token.address} className={classes.token} classes={{ root: classes.tokenRoot }}>
<ListItemIcon className={classes.tokenIcon}>
<Img src={token.logoUri} height={28} alt={token.name} onError={setImageToPlaceholder} />
</ListItemIcon>

View File

@ -20,6 +20,9 @@ export const styles = () => ({
paddingRight: md,
paddingLeft: md,
},
addBtnLabel: {
fontSize: mediumFontSize,
},
actions: {
height: '50px',
},
@ -33,6 +36,10 @@ export const styles = () => ({
minHeight: '50px',
borderBottom: `1px solid ${border}`,
},
tokenRoot: {
paddingTop: 0,
paddingBottom: 0,
},
searchInput: {
backgroundColor: 'transparent',
lineHeight: 'initial',

View File

@ -1,16 +1,13 @@
// @flow
import { lg, sm } from '~/theme/variables'
import { lg, md } from '~/theme/variables'
export const styles = () => ({
heading: {
padding: `${sm} ${lg}`,
padding: `${md} ${lg}`,
justifyContent: 'space-between',
maxHeight: '75px',
boxSizing: 'border-box',
},
manage: {
fontSize: '24px',
},
close: {
height: '35px',
width: '35px',