Skip to content

Commit

Permalink
🐛 Fix issue with content not scrolling if right rail has focus
Browse files Browse the repository at this point in the history
  • Loading branch information
macdonst committed Feb 2, 2021
1 parent 3eb0022 commit 94be461
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/Grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ const Grid = ({ children, ...props }) => (

const GridHeader = styled.div`
height: var(--spectrum-global-dimension-size-800);
width: auto;
width: 100%;
position: fixed;
background-color: white;
z-index: 2;
@media screen and (min-width: 1201px) {
grid-area: 1 / 1 / 2 / 14;
Expand All @@ -60,13 +63,11 @@ const GridContent = styled.main`
@media screen and (min-width: 1201px) {
grid-area: 2 / 2 / 2 / 11;
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
grid-area: 2 / 2 / 2 / 13;
height: 100vh;
overflow-y: auto;
overflow-x: hidden;
}
Expand Down Expand Up @@ -101,6 +102,10 @@ const GridFooter = styled.div`

const GridNav = styled.div`
background-color: var(--spectrum-global-color-gray-75);
position: fixed;
margin-top: var(--spectrum-global-dimension-size-800);
height: 100%;
@media screen and (min-width: 768px) {
grid-area: 2 / 1 / 4 / 2;
}
Expand Down

0 comments on commit 94be461

Please sign in to comment.