Skip to content

Commit

Permalink
[core] Uniformize pseudo-classes syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Mar 14, 2020
1 parent 35dae27 commit 15ab987
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/src/pages/components/slider/CustomizedSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const IOSSlider = withStyles({
boxShadow: iOSBoxShadow,
marginTop: -14,
marginLeft: -14,
'&:focus,&:hover,&$active': {
'&:focus, &:hover, &$active': {
boxShadow: '0 3px 1px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.3),0 0 0 1px rgba(0,0,0,0.02)',
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
Expand Down Expand Up @@ -110,7 +110,7 @@ const PrettoSlider = withStyles({
border: '2px solid currentColor',
marginTop: -8,
marginLeft: -12,
'&:focus,&:hover,&$active': {
'&:focus, &:hover, &$active': {
boxShadow: 'inherit',
},
},
Expand Down Expand Up @@ -142,7 +142,7 @@ const AirbnbSlider = withStyles({
marginTop: -12,
marginLeft: -13,
boxShadow: '#ebebeb 0px 2px 2px',
'&:focus,&:hover,&$active': {
'&:focus, &:hover, &$active': {
boxShadow: '#ccc 0px 2px 3px 1px',
},
'& .bar': {
Expand Down
6 changes: 3 additions & 3 deletions docs/src/pages/components/slider/CustomizedSlider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ const IOSSlider = withStyles({
boxShadow: iOSBoxShadow,
marginTop: -14,
marginLeft: -14,
'&:focus,&:hover,&$active': {
'&:focus, &:hover, &$active': {
boxShadow: '0 3px 1px rgba(0,0,0,0.1),0 4px 8px rgba(0,0,0,0.3),0 0 0 1px rgba(0,0,0,0.02)',
// Reset on touch devices, it doesn't add specificity
'@media (hover: none)': {
Expand Down Expand Up @@ -111,7 +111,7 @@ const PrettoSlider = withStyles({
border: '2px solid currentColor',
marginTop: -8,
marginLeft: -12,
'&:focus,&:hover,&$active': {
'&:focus, &:hover, &$active': {
boxShadow: 'inherit',
},
},
Expand Down Expand Up @@ -143,7 +143,7 @@ const AirbnbSlider = withStyles({
marginTop: -12,
marginLeft: -13,
boxShadow: '#ebebeb 0px 2px 2px',
'&:focus,&:hover,&$active': {
'&:focus, &:hover, &$active': {
boxShadow: '#ccc 0px 2px 3px 1px',
},
'& .bar': {
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/TableRow/TableRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const styles = theme => ({
'&$hover:hover': {
backgroundColor: theme.palette.action.hover,
},
'&$selected,&$selected:hover': {
'&$selected, &$selected:hover': {
backgroundColor: fade(theme.palette.secondary.main, theme.palette.action.selectedOpacity),
},
},
Expand Down

0 comments on commit 15ab987

Please sign in to comment.