Skip to content

Commit 22a4a1a

Browse files
committed
Removed logo zindex, moved menu zIndex to the whole component, and used variable.
1 parent b3b8481 commit 22a4a1a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/components/top-nav-bar.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ const useStylesFromThemeFunction = createUseStyles(theme => ({
200200
}),
201201
topNavBar: props => ({
202202
width: '100%',
203+
zIndex: theme.zIndexes.menu, // The navbar appears below other blocks without zIndex
203204
position: (() => {
204205
if (props.mode === 'transparent') {
205206
return 'absolute'
@@ -247,7 +248,6 @@ const useStylesFromThemeFunction = createUseStyles(theme => ({
247248
position: 'relative',
248249
},
249250
logo: {
250-
zIndex: 1,
251251
width: '8.5rem',
252252
height: 'auto',
253253
paddingBottom: '1.5rem',
@@ -264,7 +264,6 @@ const useStylesFromThemeFunction = createUseStyles(theme => ({
264264
gap: '0.4rem',
265265
transform: 'translateX(-50%)',
266266
alignItems: 'baseline',
267-
zIndex: theme.zIndexes.menu,
268267
[`@media (max-width: ${theme.condensedWidthBreakPoint})`]: {
269268
display: 'none',
270269
},

0 commit comments

Comments
 (0)