Skip to content

Commit

Permalink
[Button] Increase elevation on hover when contained
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Sep 23, 2019
1 parent 3eb82b1 commit aa144b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/material-ui/src/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ export const styles = theme => ({
boxShadow: theme.shadows[2],
'&:hover': {
backgroundColor: theme.palette.grey.A100,
boxShadow: theme.shadows[4],
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
boxShadow: theme.shadows[4],
backgroundColor: theme.palette.grey[300],
},
'&$disabled': {
Expand Down

0 comments on commit aa144b2

Please sign in to comment.