Skip to content

Commit

Permalink
Merge pull request #73 from jgitgud/app/design/wallet/amount-field-bg
Browse files Browse the repository at this point in the history
app:design:amount-field-bg now targets correct container div
  • Loading branch information
jack0son authored Apr 13, 2020
2 parents 41373df + e87d8dc commit 575d055
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
18 changes: 5 additions & 13 deletions @woke/app/src/components/fields/number-outlined.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import React from 'react';
import clsx from 'clsx';
import { makeStyles } from '@material-ui/core/styles';
import IconButton from '@material-ui/core/IconButton';
import Input from '@material-ui/core/Input';
import FilledInput from '@material-ui/core/FilledInput';
import OutlinedInput from '@material-ui/core/OutlinedInput';
import InputLabel from '@material-ui/core/InputLabel';
import InputAdornment from '@material-ui/core/InputAdornment';
import FormHelperText from '@material-ui/core/FormHelperText';
import FormControl from '@material-ui/core/FormControl';
import TextField from '@material-ui/core/TextField';
import Visibility from '@material-ui/icons/Visibility';
import VisibilityOff from '@material-ui/icons/VisibilityOff';

const useStyles = makeStyles((theme) => ({
root: {
Expand All @@ -20,15 +10,17 @@ const useStyles = makeStyles((theme) => ({
},

input: {
backgroundColor: theme.palette.background.default,
'& > div': {
backgroundColor: theme.palette.background.default,
}
},

// @fix move to global theme
overrides: {
MuiOutlinedInput: {
root: {
'&:hover:not($disabled):not($focused):not($error) $notchedOutline': {
borderColor: 'rgba(0,0,0,0.4)',
borderColor: 'rgba(0,0,0,0.4)',
},
},
},
Expand Down Expand Up @@ -56,7 +48,7 @@ export default function NumberFieldOutlined({ controlledValue, handleChange, ...
value={controlledValue}
onChange={handleChange}
id="outlined-adornment-amount"
InputLabelProps={{ style: { zIndex: '0' } }}
InputLabelProps={{ style: { zIndex: '1' } }}
InputProps={{
startAdornment: <InputAdornment position="start">{unitSymbol}</InputAdornment>
}}
Expand Down
2 changes: 1 addition & 1 deletion @woke/app/src/components/typeahead.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const useStyles = makeStyles(theme => ({
},
paper: {
position: 'absolute',
zIndex: 1,
zIndex: 2,
//marginTop: theme.spacing(1),
height: theme.spacing(4),
minHeight: theme.spacing(4),
Expand Down

0 comments on commit 575d055

Please sign in to comment.