Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1255 from mrfelton/fix/scroll-issue
Browse files Browse the repository at this point in the history
fix(ui): ensure main content area is scrollable
  • Loading branch information
JimmyMow committed Jan 5, 2019
2 parents 31325f2 + 8586c7e commit cdfbfe3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/components/UI/MainContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { BackgroundPrimary } from 'components/UI'
* @example
* <MainContent>Some content</MainContent>
*/
const MainContent = ({ css, ...rest }) => <BackgroundPrimary as="article" width={1} {...rest} />
const MainContent = ({ css, ...rest }) => (
<BackgroundPrimary as="article" width={1} css={{ 'overflow-y': 'auto' }} {...rest} />
)

export default MainContent
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ exports[`component.UI.MainContent should render correctly 1`] = `
width: 100%;
color: primaryText;
background-color: primaryColor;
overflow-y: auto;
}
<article
Expand Down

0 comments on commit cdfbfe3

Please sign in to comment.