Skip to content

Commit

Permalink
#237 - Adjusting the z-index of the header
Browse files Browse the repository at this point in the history
  • Loading branch information
mlfaa committed Dec 16, 2021
1 parent 364f25f commit 2756a58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export default function Header(props) {
const yearsRange = rangeOfYears(props.initialYear, APPLICATION_CONSTANTS.CURRENT_YEAR);
return (
<>
<AppBar position="sticky" elevation={0}>
<AppBar className={classes.bar} position="sticky" elevation={0}>
<Toolbar>
<Box width="100%" className={classes.inputOptions}>
<FormControl id="form-control-year" className={classes.formControl}>
Expand Down
3 changes: 3 additions & 0 deletions src/components/Header/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { makeStyles } from '@material-ui/core/styles';
import { lighten } from 'polished';

export const useStyles = makeStyles((theme) => ({
bar: {
zIndex: 0,
},
root: {
flexGrow: 1,
},
Expand Down

0 comments on commit 2756a58

Please sign in to comment.