material ui v4 migration style fixes

This commit is contained in:
Mikhail Mikheev 2019-05-27 19:11:24 +04:00
parent ed2b6139c7
commit 974bc0d804
4 changed files with 13 additions and 2 deletions

View File

@ -64,7 +64,7 @@ const styles = theme => ({
}, },
iconVariant: { iconVariant: {
opacity: 0.9, opacity: 0.9,
marginRight: theme.spacing.unit, marginRight: theme.spacing(1),
}, },
message: { message: {
display: 'flex', display: 'flex',

View File

@ -9,6 +9,8 @@ export const selectedTokenStyles = () => ({
}, },
tokenData: { tokenData: {
padding: 0, padding: 0,
margin: 0,
lineHeight: '14px',
}, },
tokenImage: { tokenImage: {
marginRight: sm, marginRight: sm,

View File

@ -13,7 +13,7 @@ export const styles = (theme: Object) => ({
margin: `${sm} 0`, margin: `${sm} 0`,
}, },
actionIcon: { actionIcon: {
marginRight: theme.spacing.unit, marginRight: theme.spacing(1),
}, },
iconSmall: { iconSmall: {
fontSize: 16, fontSize: 16,

View File

@ -12,6 +12,7 @@ import {
bolderFont, bolderFont,
boldFont, boldFont,
buttonLargeFontSize, buttonLargeFontSize,
xs,
} from './variables' } from './variables'
export type WithStyles = { export type WithStyles = {
@ -135,6 +136,7 @@ export default createMuiTheme({
padding: 0, padding: 0,
letterSpacing: '0.5px', letterSpacing: '0.5px',
color: primary, color: primary,
height: 'auto',
textOverflow: 'ellipsis', textOverflow: 'ellipsis',
display: 'flex', display: 'flex',
'&::-webkit-input-placeholder': { '&::-webkit-input-placeholder': {
@ -217,6 +219,8 @@ export default createMuiTheme({
color: primary, color: primary,
letterSpacing: '-0.5px', letterSpacing: '-0.5px',
fontWeight: 'normal', fontWeight: 'normal',
paddingTop: xs,
paddingBottom: xs,
}, },
}, },
MuiBackdrop: { MuiBackdrop: {
@ -230,6 +234,11 @@ export default createMuiTheme({
fontFamily: 'Roboto Mono, monospace', fontFamily: 'Roboto Mono, monospace',
}, },
}, },
MuiListItemIcon: {
root: {
minWidth: 'auto',
},
},
MuiListItemText: { MuiListItemText: {
primary: { primary: {
fontFamily: 'Roboto Mono, monospace', fontFamily: 'Roboto Mono, monospace',