Skip to content

Commit

Permalink
AppBar elevation 1 -> 2
Browse files Browse the repository at this point in the history
It is weird to have that floating surface lower than surfaces on page.
  • Loading branch information
CarsonF committed Jun 25, 2024
1 parent 92bb9d9 commit 9e21e8b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/scenes/Root/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HeaderSearch } from './HeaderSearch';
import { ProfileToolbar } from './ProfileToolbar';

export const Header = () => (
<AppBar position="static" color="inherit" elevation={1} sx={{ zIndex: 1 }}>
<AppBar position="static" color="inherit" sx={{ zIndex: 1 }}>
<Toolbar sx={{ gap: 3, justifyContent: 'space-between' }}>
<HeaderSearch sx={{ flex: 1, maxWidth: 500 }} />
<ProfileToolbar />
Expand Down
5 changes: 5 additions & 0 deletions src/theme/overrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export const appComponents = ({
? palette.primary.light
: palette.primary.main;
return {
MuiAppBar: {
defaultProps: {
elevation: 2,
},
},
MuiCssBaseline: {
styleOverrides: {
'#root': {
Expand Down

0 comments on commit 9e21e8b

Please sign in to comment.