Skip to content

Commit add91aa

Browse files
committed
mobile tweaks
1 parent 3f58d74 commit add91aa

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/components/Search.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ export default () => {
165165
<OpenSearch
166166
css={{
167167
background: rgba(theme.colors.text, 0.05),
168-
':hover': {
169-
background: theme.colors.primary,
170-
color: theme.colors.white,
168+
'@media (hover: hover)': {
169+
':hover': {
170+
background: theme.colors.primary,
171+
color: theme.colors.white,
172+
},
171173
},
172174
color: theme.colors.text,
173175
}}

src/components/ThemeToggler.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ const ThemeToggler = ({ toggleTheme, themeName }) => {
3434
justifyContent: 'center',
3535
margin: 0,
3636
color: theme.colors.text,
37-
':hover': {
38-
color: theme.colors.white,
37+
'@media (hover: hover)': {
38+
':hover': {
39+
color: theme.colors.white,
40+
},
3941
},
4042
}}
4143
aria-label={

0 commit comments

Comments
 (0)