refactor: refactor the new trigger wizard styles

This commit is contained in:
Liordino Neto 2020-04-06 22:25:13 -03:00 committed by Josh Harvey
parent 0803b98a5e
commit cefe9e2521
4 changed files with 4 additions and 42 deletions

View file

@ -31,8 +31,8 @@ const Wizard = ({ header, nextStepText, finalStepText, finish, children }) => {
return ( return (
<> <>
<div className={classes.modalHeader}>{header}</div> <div className={classes.header}>{header}</div>
<div className={classes.modalBody}> <div className={classes.body}>
<div className={classes.columnWrapper}> <div className={classes.columnWrapper}>
{/* TODO: wizard steps icons are a little strange... */} {/* TODO: wizard steps icons are a little strange... */}
<div className={classes.wizardStepsWrapper}> <div className={classes.wizardStepsWrapper}>

View file

@ -12,11 +12,11 @@ const mainStyles = {
marginLeft: 'auto', marginLeft: 'auto',
marginTop: 'auto' marginTop: 'auto'
}, },
modalHeader: { header: {
display: 'flex', display: 'flex',
marginBottom: 14 marginBottom: 14
}, },
modalBody: { body: {
display: 'flex', display: 'flex',
height: '100%' height: '100%'
}, },

View file

@ -105,7 +105,6 @@ const SelectTriggerRequirements = () => {
)} )}
/> />
<div className={classes.rowWrapper}> <div className={classes.rowWrapper}>
{/* TODO: why there's a trigger type property two times? Here and on the prior step */}
<H4>Choose trigger type</H4> <H4>Choose trigger type</H4>
<div className={classes.transparentButton}> <div className={classes.transparentButton}>
<button onClick={handleOpenTypeHelpPopper}> <button onClick={handleOpenTypeHelpPopper}>

View file

@ -1,6 +1,5 @@
import baseStyles from 'src/pages/Logs.styles' import baseStyles from 'src/pages/Logs.styles'
import { booleanPropertiesTableStyles } from 'src/components/booleanPropertiesTable/BooleanPropertiesTable.styles' import { booleanPropertiesTableStyles } from 'src/components/booleanPropertiesTable/BooleanPropertiesTable.styles'
import { disabledColor, secondaryColor } from 'src/styling/variables'
const { titleWrapper, titleAndButtonsContainer, buttonsWrapper } = baseStyles const { titleWrapper, titleAndButtonsContainer, buttonsWrapper } = baseStyles
const { rowWrapper, radioButtons } = booleanPropertiesTableStyles const { rowWrapper, radioButtons } = booleanPropertiesTableStyles
@ -28,17 +27,6 @@ const mainStyles = {
marginRight: 12 marginRight: 12
} }
}, },
columnWrapper: {
display: 'flex',
flexDirection: 'column',
height: '100%',
width: '100%'
},
bottomRightAligned: {
alignSelf: 'flex-end',
marginLeft: 'auto',
marginTop: 'auto'
},
modal: { modal: {
display: 'flex', display: 'flex',
alignItems: 'center', alignItems: 'center',
@ -72,14 +60,6 @@ const mainStyles = {
flexGrow: 2 flexGrow: 2
} }
}, },
modalHeader: {
display: 'flex',
marginBottom: 14
},
modalBody: {
display: 'flex',
height: '100%'
},
transparentButton: { transparentButton: {
'& > *': { '& > *': {
margin: 'auto 12px' margin: 'auto 12px'
@ -101,23 +81,6 @@ const mainStyles = {
width: 96, width: 96,
height: 40, height: 40,
marginRight: 8 marginRight: 8
},
wizardStepsWrapper: {
display: 'flex',
alignItems: 'center',
position: 'relative',
flex: 'wrap',
marginBottom: 10
},
unreachedStepLine: {
width: 24,
height: 2,
border: `solid 1px ${disabledColor}`
},
reachedStepLine: {
width: 24,
height: 2,
border: `solid 1px ${secondaryColor}`
} }
} }