|
1 | 1 | import * as React from 'react'; |
2 | 2 | import PropTypes from 'prop-types'; |
3 | 3 | import clsx from 'clsx'; |
4 | | -import { makeStyles, fade } from '@material-ui/core/styles'; |
| 4 | +import { makeStyles, alpha } from '@material-ui/core/styles'; |
5 | 5 | import Collapse from '@material-ui/core/Collapse'; |
6 | 6 | import ButtonBase from '@material-ui/core/ButtonBase'; |
7 | 7 | import ArrowRightIcon from '@material-ui/icons/ArrowRight'; |
@@ -29,7 +29,7 @@ const useStyles = makeStyles((theme) => ({ |
29 | 29 | }), |
30 | 30 | '&:hover': { |
31 | 31 | color: theme.palette.text.primary, |
32 | | - backgroundColor: fade(theme.palette.text.primary, theme.palette.action.hoverOpacity), |
| 32 | + backgroundColor: alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity), |
33 | 33 | }, |
34 | 34 | '&.Mui-focusVisible': { |
35 | 35 | backgroundColor: theme.palette.action.focus, |
@@ -58,19 +58,19 @@ const useStyles = makeStyles((theme) => ({ |
58 | 58 | color: theme.palette.text.secondary, |
59 | 59 | '&.app-drawer-active': { |
60 | 60 | color: theme.palette.primary.main, |
61 | | - backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity), |
| 61 | + backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity), |
62 | 62 | '&:hover': { |
63 | | - backgroundColor: fade( |
| 63 | + backgroundColor: alpha( |
64 | 64 | theme.palette.primary.main, |
65 | 65 | theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity, |
66 | 66 | ), |
67 | 67 | // Reset on touch devices, it doesn't add specificity |
68 | 68 | '@media (hover: none)': { |
69 | | - backgroundColor: fade(theme.palette.primary.main, theme.palette.action.selectedOpacity), |
| 69 | + backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity), |
70 | 70 | }, |
71 | 71 | }, |
72 | 72 | '&.Mui-focusVisible': { |
73 | | - backgroundColor: fade( |
| 73 | + backgroundColor: alpha( |
74 | 74 | theme.palette.primary.main, |
75 | 75 | theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity, |
76 | 76 | ), |
|
0 commit comments