Skip to content

Commit

Permalink
Add overflowY: scroll to filtered starters sidebar (#9596)
Browse files Browse the repository at this point in the history
Closes #9592.
  • Loading branch information
hasparus authored and DSchau committed Nov 2, 2018
1 parent 8a660b7 commit 8877165
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions www/src/views/shared/sidebar.js
Expand Up @@ -2,8 +2,10 @@ import React from "react"
import MdFilterList from "react-icons/lib/md/filter-list"
import styles from "../shared/styles"

export const SidebarContainer = ({ children }) => (
<div css={[styles.sidebarContainer, styles.sticky]}>{children}</div>
export const SidebarContainer = ({ children, className }) => (
<div className={className} css={[styles.sidebarContainer, styles.sticky]}>
{children}
</div>
)

export const SidebarBody = ({ children }) => (
Expand Down
2 changes: 1 addition & 1 deletion www/src/views/starter-library/filtered-starters.js
Expand Up @@ -101,7 +101,7 @@ export default class FilteredStarterLibrary extends Component {

return (
<section className="showcase" css={{ display: `flex` }}>
<SidebarContainer>
<SidebarContainer css={{ overflowY: "auto" }}>
<SidebarHeader />
<SidebarBody>
<div css={{ height: `3.5rem` }}>
Expand Down

0 comments on commit 8877165

Please sign in to comment.