Skip to content

Commit

Permalink
fade -> alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwooding committed Oct 11, 2020
1 parent c7c3643 commit c8081c9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions docs/src/pages/components/tree-view/BarTreeView.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { makeStyles, fade } from '@material-ui/core/styles';
import { makeStyles, alpha } from '@material-ui/core/styles';
import TreeView from '@material-ui/lab/TreeView';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
Expand Down Expand Up @@ -49,27 +49,27 @@ const useContentStyles = makeStyles((theme) => ({
backgroundColor: theme.palette.action.focus,
},
'$root$selected &': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity,
),
},
'$root$selected:hover &': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity +
theme.palette.action.hoverOpacity,
),
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity,
),
},
},
'$root$selected$focused &': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity +
theme.palette.action.focusOpacity,
Expand Down
10 changes: 5 additions & 5 deletions docs/src/pages/components/tree-view/BarTreeView.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { makeStyles, fade, createStyles } from '@material-ui/core/styles';
import { makeStyles, alpha, createStyles } from '@material-ui/core/styles';
import TreeView from '@material-ui/lab/TreeView';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import ChevronRightIcon from '@material-ui/icons/ChevronRight';
Expand Down Expand Up @@ -53,27 +53,27 @@ const useContentStyles = makeStyles((theme) =>
backgroundColor: theme.palette.action.focus,
},
'$root$selected &': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity,
),
},
'$root$selected:hover &': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity +
theme.palette.action.hoverOpacity,
),
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity,
),
},
},
'$root$selected$focused &': {
backgroundColor: fade(
backgroundColor: alpha(
theme.palette.primary.main,
theme.palette.action.selectedOpacity +
theme.palette.action.focusOpacity,
Expand Down

0 comments on commit c8081c9

Please sign in to comment.