Skip to content

Commit

Permalink
fix the print mode
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed May 29, 2019
1 parent 299a17c commit 5da996d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/src/modules/components/AppFrame.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ const styles = theme => ({
duration: theme.transitions.duration.enteringScreen,
}),
},
'@media print': {
display: 'none',
},
},
appBar: {
transition: theme.transitions.create('width'),
Expand Down
3 changes: 2 additions & 1 deletion packages/material-ui/src/Dialog/Dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const styles = theme => ({
/* Styles applied to the root element. */
root: {
'@media print': {
position: 'absolute',
// Use !important to override the Modal inline-style.
position: 'absolute !important',
},
},
/* Styles applied to the root element if `scroll="paper"`. */
Expand Down

0 comments on commit 5da996d

Please sign in to comment.