Skip to content

Commit

Permalink
[Switch] Fix hover style on mobile (#18034)
Browse files Browse the repository at this point in the history
  • Loading branch information
SarthakC authored and oliviertassinari committed Oct 25, 2019
1 parent cd817b1 commit c10b8e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/material-ui/src/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export const styles = theme => ({
color: theme.palette.primary.main,
'&:hover': {
backgroundColor: fade(theme.palette.primary.main, theme.palette.action.hoverOpacity),
'@media (hover: none)': {
backgroundColor: 'transparent',
},
},
},
'&$disabled': {
Expand All @@ -79,6 +82,9 @@ export const styles = theme => ({
color: theme.palette.secondary.main,
'&:hover': {
backgroundColor: fade(theme.palette.secondary.main, theme.palette.action.hoverOpacity),
'@media (hover: none)': {
backgroundColor: 'transparent',
},
},
},
'&$disabled': {
Expand Down

0 comments on commit c10b8e7

Please sign in to comment.