Skip to content

Commit 9412aa4

Browse files
Issue1225 - Reposition search button for search UI (#1474)
* Updated * removed cache * made changes for search button locations * removed public
1 parent 2ca6bc4 commit 9412aa4

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

src/frontend/gatsby/src/components/SearchBar/SearchBar.jsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
IconButton,
1212
Box,
1313
Typography,
14-
Fab,
1514
} from '@material-ui/core';
1615

1716
import SearchInput from '../SearchInput';
@@ -61,10 +60,9 @@ const useStyles = makeStyles((theme) => ({
6160
color: theme.palette.primary.contrastText,
6261
},
6362
margin: 0,
64-
position: 'relative',
65-
bottom: theme.spacing(6),
66-
float: 'right',
67-
marginBottom: theme.spacing(-5.5),
63+
position: 'absolute',
64+
right: '10px',
65+
top: '6px',
6866
},
6967
selectControl: {
7068
'& > *': {
@@ -104,13 +102,6 @@ function CustomizedInputBase(props) {
104102
</Grid>
105103
<SearchHelp />
106104
</Grid>
107-
<Fab size="large" className={classes.iconButton}>
108-
<FormControl>
109-
<IconButton type="submit" onClick={onSubmit} aria-label="search">
110-
<SearchIcon />
111-
</IconButton>
112-
</FormControl>
113-
</Fab>
114105
<Grid container direction="row" spacing={2} alignItems="center" justify="flex-start">
115106
<Grid item xs={12} sm={2} lg={2}>
116107
<FormControl fullWidth>
@@ -134,6 +125,14 @@ function CustomizedInputBase(props) {
134125
<Grid item xs={12} sm={10} lg={10}>
135126
<FormControl fullWidth>
136127
<SearchInput filter={filter} text={text} onChange={onTextChange} />
128+
<IconButton
129+
className={classes.iconButton}
130+
type="submit"
131+
onClick={onSubmit}
132+
aria-label="search"
133+
>
134+
<SearchIcon />
135+
</IconButton>
137136
</FormControl>
138137
</Grid>
139138
</Grid>

0 commit comments

Comments
 (0)