Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX scrolling styling #6785

Merged
merged 2 commits into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 40 additions & 38 deletions addons/a11y/src/components/__snapshots__/A11YPanel.test.js.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,9 @@ exports[`Storyshots Addons|Info/Markdown Displays Markdown in description 1`] =

.emotion-2 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
position: relative;
}

Expand Down Expand Up @@ -4612,7 +4614,9 @@ exports[`Storyshots Addons|Info/Parameters Overwrite the parameters with markdow

.emotion-2 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
position: relative;
}

Expand Down Expand Up @@ -5258,7 +5262,9 @@ exports[`Storyshots Addons|Info/Parameters Overwrite the text parameter with mar

.emotion-2 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
position: relative;
}

Expand Down Expand Up @@ -9500,7 +9506,9 @@ exports[`Storyshots Addons|Info/deprecated Displays Markdown in description 1`]

.emotion-2 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
position: relative;
}

Expand Down
127 changes: 115 additions & 12 deletions examples/official-storybook/tests/__snapshots__/storyshots.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2538,8 +2538,8 @@ exports[`Storyshots Basics|ScrollArea both 1`] = `
.emotion-401 {
white-space: nowrap;
line-height: 0px;
max-width: 500px;
max-height: 500px;
width: 500px;
height: 500px;
overflow: hidden;
}

Expand All @@ -2557,14 +2557,16 @@ exports[`Storyshots Basics|ScrollArea both 1`] = `

.emotion-400 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
}

.emotion-401 {
white-space: nowrap;
line-height: 0px;
max-width: 500px;
max-height: 500px;
width: 500px;
height: 500px;
overflow: hidden;
}

Expand All @@ -2582,7 +2584,9 @@ exports[`Storyshots Basics|ScrollArea both 1`] = `

.emotion-400 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
}

<div
Expand Down Expand Up @@ -4664,8 +4668,8 @@ exports[`Storyshots Basics|ScrollArea horizontal 1`] = `
.emotion-21 {
white-space: nowrap;
line-height: 0px;
max-width: 500px;
max-height: 500px;
width: 500px;
height: 500px;
overflow: hidden;
}

Expand All @@ -4684,13 +4688,14 @@ exports[`Storyshots Basics|ScrollArea horizontal 1`] = `
.emotion-20 {
overflow-y: hidden;
overflow-x: auto;
width: 100%;
}

.emotion-21 {
white-space: nowrap;
line-height: 0px;
max-width: 500px;
max-height: 500px;
width: 500px;
height: 500px;
overflow: hidden;
}

Expand All @@ -4709,6 +4714,7 @@ exports[`Storyshots Basics|ScrollArea horizontal 1`] = `
.emotion-20 {
overflow-y: hidden;
overflow-x: auto;
width: 100%;
}

<div
Expand Down Expand Up @@ -4870,13 +4876,14 @@ exports[`Storyshots Basics|ScrollArea vertical 1`] = `
.emotion-21 {
white-space: nowrap;
line-height: 0px;
max-width: 500px;
max-height: 500px;
width: 500px;
height: 500px;
overflow: hidden;
}

.emotion-20 {
overflow-y: auto;
height: 100%;
overflow-x: hidden;
}

Expand All @@ -4895,13 +4902,14 @@ exports[`Storyshots Basics|ScrollArea vertical 1`] = `
.emotion-21 {
white-space: nowrap;
line-height: 0px;
max-width: 500px;
max-height: 500px;
width: 500px;
height: 500px;
overflow: hidden;
}

.emotion-20 {
overflow-y: auto;
height: 100%;
overflow-x: hidden;
}

Expand Down Expand Up @@ -5092,6 +5100,95 @@ exports[`Storyshots Basics|ScrollArea vertical 1`] = `
</div>
`;

exports[`Storyshots Basics|ScrollArea withOuterBorder 1`] = `
.emotion-1 {
white-space: nowrap;
line-height: 0px;
width: 500px;
height: 500px;
overflow: hidden;
}

.emotion-0 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
}

.emotion-1 {
white-space: nowrap;
line-height: 0px;
width: 500px;
height: 500px;
overflow: hidden;
}

.emotion-0 {
overflow-y: auto;
height: 100%;
overflow-x: auto;
width: 100%;
}

<div
class="emotion-1"
>
<div
class="emotion-0"
data-simplebar="true"
>
<div
class="simplebar-wrapper"
>
<div
class="simplebar-height-auto-observer-wrapper"
>
<div
class="simplebar-height-auto-observer"
/>
</div>
<div
class="simplebar-mask"
>
<div
class="simplebar-offset"
>
<div
class="simplebar-content-wrapper"
>
<div
class="simplebar-content"
>
<div
style="width:2000px;height:2000px;border:10px solid orangered;background:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAM4klEQVR4Xu2d224ktxGGayTN6LTrOO//PMmlAfvOgIEkFwEcZ71a7ep8muBjd2k4re4eVpHsaS1CeKH1is1u1s86slhcrP/261r62oGInB6LLBbNb8+PRQ75x/+3bArcPYh8vu4dZjEMyELk7Hjz0JwBYdGEddMuHmnXWPixDv/NqrkAOVw0HKJtDoAcHTZcerAQOTgQ4Rv5+ysQHbKvWyReAGUt8vIi8vQi8vzS/H1fQD08iny6MnLIG0BOGgJM2SD68lAEIPhZuj09i9w/ijw+lx55fDze+8dXKyDokJP9cAjEP142QEzR4B645v5J5PGp/hsfnkQ+fTMCcrQQOZlYZAEAolENifqkefsGRNnNgwiruFZDZP153YjRThtW6suFyPFEgKAHzhGJM7LiAOb6vuGc0s0FyOpAZLXafMqHk1aBFv46RNPJcr9cMTiltcjtY6NnSrb7h4ZDetowh6wORVbLuoBgVq+OSk61zliIr6u7cmPf3olc3OYCctyYmqUaIqqG5VTq+7rjILoApUfum195+yByYeWQ4yORZbR6P56UEyuIv6ksKDO1Rh6AU9AruaDc3Yt8vjFyCHI9JlopQBj3JNJNJQk2xVgoZKywnOZS6hDtqBVR+I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/RbsFQcNaVL/H+XWNQFpBI7lgYxJomxTsZ989cQAhne67O2zVpfk9SNMpxLgo/3MS5uZ92dAqelCcFpOOD7HYMY7N3dSByknFBcQow4VAnltgEexjd7yGsE8r/3dsqNowBwniUEiQEFTc21j5fN5knnVjcuMiKr9DrXjaZQmBvnxBtPmzCNnphmXessec0WEnEFq7wNBI6+hpcgPJG3MH9hKE0WvEKyNtt6B2ARKeRpgSkO8Fw+KcFJxTRdBgC8UqEUPyJL6H0gKEbcfGzKP9QZLNjBMQe/c2dyMWNg0PiS+0JxXdZzzOJEs+8Fs5v92505cXxMo0+h7C9vrS9vq7ENzCGxul0vHBP+ogRoM41HAIgZh0SA8KpKKu9XWricx1HM1r4Pjz4LfAHPlq3LEgbClVRt/ul65A51rKaA1Ca95x6qotvRmR96b8/axiQ4FFT9KWdNQq+9kmkORB4im9wAaJ346pcDg6cQ5lOMcH39g7VIT3f/T+lOOGi/Z/IjAAAAABJRU5ErkJggg==')"
/>
</div>
</div>
</div>
</div>
<div
class="simplebar-placeholder"
/>
</div>
<div
class="simplebar-track simplebar-horizontal"
>
<div
class="simplebar-scrollbar"
/>
</div>
<div
class="simplebar-track simplebar-vertical"
>
<div
class="simplebar-scrollbar"
/>
</div>
</div>
</div>
`;

exports[`Storyshots Core|Decorators all 1`] = `
Array [
<p>
Expand Down Expand Up @@ -5893,6 +5990,7 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = `
.emotion-8 {
overflow-y: hidden;
overflow-x: auto;
width: 100%;
color: #999999;
width: 100%;
height: 40px;
Expand Down Expand Up @@ -6385,6 +6483,7 @@ exports[`Storyshots UI|Settings/ShortcutsScreen default shortcuts 1`] = `
.emotion-8 {
overflow-y: hidden;
overflow-x: auto;
width: 100%;
color: #999999;
width: 100%;
height: 40px;
Expand Down Expand Up @@ -7728,6 +7827,7 @@ exports[`Storyshots UI|Sidebar/Sidebar loading 1`] = `

.emotion-77 {
overflow-y: auto;
height: 100%;
overflow-x: hidden;
}

Expand Down Expand Up @@ -8087,6 +8187,7 @@ exports[`Storyshots UI|Sidebar/Sidebar loading 1`] = `

.emotion-77 {
overflow-y: auto;
height: 100%;
overflow-x: hidden;
}

Expand Down Expand Up @@ -8866,6 +8967,7 @@ exports[`Storyshots UI|Sidebar/Sidebar simple 1`] = `

.emotion-48 {
overflow-y: auto;
height: 100%;
overflow-x: hidden;
}

Expand Down Expand Up @@ -9354,6 +9456,7 @@ exports[`Storyshots UI|Sidebar/Sidebar simple 1`] = `

.emotion-48 {
overflow-y: auto;
height: 100%;
overflow-x: hidden;
}

Expand Down
17 changes: 15 additions & 2 deletions lib/components/src/ScrollArea/ScrollArea.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const Block = styled.span({
const Wrapper = styled.div({
whiteSpace: 'nowrap',
lineHeight: '0px',
maxWidth: 500,
maxHeight: 500,
width: 500,
height: 500,
overflow: 'hidden',
});

Expand Down Expand Up @@ -70,3 +70,16 @@ export const both = () => (
))}
</ScrollArea>
);

export const withOuterBorder = () => (
<ScrollArea horizontal vertical>
<div
style={{
width: 2000,
height: 2000,
border: '10px solid orangered',
background: `url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAM4klEQVR4Xu2d224ktxGGayTN6LTrOO//PMmlAfvOgIEkFwEcZ71a7ep8muBjd2k4re4eVpHsaS1CeKH1is1u1s86slhcrP/261r62oGInB6LLBbNb8+PRQ75x/+3bArcPYh8vu4dZjEMyELk7Hjz0JwBYdGEddMuHmnXWPixDv/NqrkAOVw0HKJtDoAcHTZcerAQOTgQ4Rv5+ysQHbKvWyReAGUt8vIi8vQi8vzS/H1fQD08iny6MnLIG0BOGgJM2SD68lAEIPhZuj09i9w/ijw+lx55fDze+8dXKyDokJP9cAjEP142QEzR4B645v5J5PGp/hsfnkQ+fTMCcrQQOZlYZAEAolENifqkefsGRNnNgwiruFZDZP153YjRThtW6suFyPFEgKAHzhGJM7LiAO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LYIAIJ8uRS7fFs5MByT36rxwOSWXVRpryKcQaLI+XMRyv72qPUf+sJ9+vxC54jz89m2fO0RWdP1q7tV5anl93GPdrCzg1o1V1C2W7Dny97QW+c/FtpXVfpsBkAwdEhMCqyScOXkH96jH3z1UlxdxZZ0LoP73a2MydypGTKPU+1ZmUPRcQbSvwx2J7KKFaYJ/1tM8qbbc7PnpqrfgTboOIZQS32WYOJ/RbsFQcNaVL/H+XWNQFpBI7lgYxJomxTsZ989cQAhne67O2zVpfk9SNMpxLgo/3MS5uZ92dAqelCcFpOOD7HYMY7N3dSByknFBcQow4VAnltgEexjd7yGsE8r/3dsqNowBwniUEiQEFTc21j5fN5knnVjcuMiKr9DrXjaZQmBvnxBtPmzCNnphmXessec0WEnEFq7wNBI6+hpcgPJG3MH9hKE0WvEKyNtt6B2ARKeRpgSkO8Fw+KcFJxTRdBgC8UqEUPyJL6H0gKEbcfGzKP9QZLNjBMQe/c2dyMWNg0PiS+0JxXdZzzOJEs+8Fs5v92505cXxMo0+h7C9vrS9vq7ENzCGxul0vHBP+ogRoM41HAIgZh0SA8KpKKu9XWricx1HM1r4Pjz4LfAHPlq3LEgbClVRt/ul65A51rKaA1Ca95x6qotvRmR96b8/axiQ4FFT9KWdNQq+9kmkORB4im9wAaJ346pcDg6cQ5lOMcH39g7VIT3f/T+lOOGi/Z/IjAAAAABJRU5ErkJggg==')`,
}}
/>
</ScrollArea>
);
2 changes: 2 additions & 0 deletions lib/components/src/ScrollArea/ScrollArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const Scroll = styled(({ vertical, horizontal, ...rest }: ScrollProps) => <Simpl
}
: {
overflowY: 'auto',
height: '100%',
},
({ horizontal }) =>
!horizontal
Expand All @@ -29,6 +30,7 @@ const Scroll = styled(({ vertical, horizontal, ...rest }: ScrollProps) => <Simpl
}
: {
overflowX: 'auto',
width: '100%',
}
);

Expand Down
Loading