Skip to content

Commit 3e361cb

Browse files
committed
fix sticky icon hover animation on mobile
1 parent 62fee0c commit 3e361cb

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

frontend/src/components/navbar/ResponsiveAppBar.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,7 @@ export const ResponsiveAppBar = ({ children }: Props) => {
235235
display: 'flex',
236236
justifyContent: 'center',
237237
alignItems: 'center',
238-
borderRadius: '50%',
239-
'&:hover': {
240-
backgroundColor: 'rgba(255, 255, 255, 0.08)'
241-
}
238+
borderRadius: '50%'
242239
}}
243240
>
244241
{updateAvailable ? (

frontend/src/theme/theme.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,21 @@ export const theme = createTheme({
133133
}
134134
}
135135
},
136+
MuiIconButton: {
137+
styleOverrides: {
138+
root: {
139+
'&:hover': {
140+
'@media (hover: hover)': {
141+
backgroundColor: 'rgba(255, 255, 255, 0.08)'
142+
}
143+
},
144+
'&:active': {
145+
backgroundColor: 'rgba(255, 255, 255, 0.08)',
146+
transition: 'background-color 0.1s ease-out'
147+
}
148+
}
149+
}
150+
},
136151
// Style check icons in StepLabel component
137152
MuiStepIcon: {
138153
styleOverrides: {

0 commit comments

Comments
 (0)