Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/material-ui/src/ButtonBase/ButtonBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export const styles = {
pointerEvents: 'none', // Disable link interactions
cursor: 'default',
},
'@media print': {
colorAdjust: 'exact',
},
},
/* Pseudo-class applied to the root element if `disabled={true}`. */
disabled: {},
Expand Down
3 changes: 3 additions & 0 deletions packages/material-ui/src/LinearProgress/LinearProgress.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ export const styles = (theme) => {
position: 'relative',
overflow: 'hidden',
height: 4,
'@media print': {
colorAdjust: 'exact',
},
},
/* Styles applied to the root and bar2 element if `color="primary"`; bar2 if `variant="buffer"`. */
colorPrimary: {
Expand Down
3 changes: 3 additions & 0 deletions packages/material-ui/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ export const styles = (theme) => ({
padding: '0 20px',
},
},
'@media print': {
colorAdjust: 'exact',
},
},
/* Styles applied to the root element if `color="primary"`. */
colorPrimary: {
Expand Down
3 changes: 3 additions & 0 deletions packages/material-ui/src/Switch/Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ export const styles = (theme) => ({
flexShrink: 0,
zIndex: 0, // Reset the stacking context.
verticalAlign: 'middle', // For correct alignment with the text.
'@media print': {
colorAdjust: 'exact',
},
},
/* Styles applied to the root element if `edge="start"`. */
edgeStart: {
Expand Down