Skip to content

Commit

Permalink
Fix: More bullet proof styles
Browse files Browse the repository at this point in the history
max-width and background on body shouldn't break layout.
  • Loading branch information
Artem Sapegin committed Jul 30, 2018
1 parent 6bf3bbb commit b66bd10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rsg-components/StyleGuide/StyleGuideRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import Version from 'rsg-components/Version';

const styles = ({ color, fontFamily, fontSize, sidebarWidth, mq, space, maxWidth }) => ({
root: {
minHeight: '100vh',
backgroundColor: color.baseBackground,
},
hasSidebar: {
Expand Down
2 changes: 2 additions & 0 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ const styles = {
isolate: false,
margin: 0,
padding: 0,
minWidth: 0,
maxWidth: '100%',
border: 0,
},
};
Expand Down

0 comments on commit b66bd10

Please sign in to comment.