Skip to content

Commit

Permalink
fix: Fix missing color in firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 26, 2020
1 parent 03f1d8e commit 2904d89
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/material-ui/src/ButtonBase/ButtonBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const styles = {
cursor: 'default',
},
'@media print': {
WebkitPrintColorAdjust: 'exact',
colorAdjust: 'exact',
},
},
/* Pseudo-class applied to the root element if `disabled={true}`. */
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/LinearProgress/LinearProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const styles = (theme) => {
overflow: 'hidden',
height: 4,
'@media print': {
WebkitPrintColorAdjust: 'exact',
colorAdjust: 'exact',
},
},
/* Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const styles = (theme) => ({
},
},
'@media print': {
WebkitPrintColorAdjust: 'exact',
colorAdjust: 'exact',
},
},
/* Styles applied to the root element if `color="primary"`. */
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const styles = (theme) => ({
zIndex: 0, // Reset the stacking context.
verticalAlign: 'middle', // For correct alignment with the text.
'@media print': {
WebkitPrintColorAdjust: 'exact',
colorAdjust: 'exact',
},
},
/* Styles applied to the root element if `edge="start"`. */
Expand Down

0 comments on commit 2904d89

Please sign in to comment.