Skip to content

Commit 20af34a

Browse files
authored
Merge pull request #2744 from storybooks/backgrounds-scrollbars
Addon-backgrounds: remove redundant scrollbars
2 parents 3416311 + 71a9f83 commit 20af34a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

addons/background/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import addons from '@storybook/addons';
55

66
const style = {
77
wrapper: {
8-
overflow: 'scroll',
8+
overflow: 'auto',
99
position: 'fixed',
1010
top: 0,
1111
bottom: 0,

examples/official-storybook/stories/__snapshots__/addon-backgrounds.stories.storyshot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Storyshots Addons|Backgrounds story 1 1`] = `
44
<div
5-
style="overflow:scroll;position:fixed;top:0;bottom:0;right:0;left:0;transition:background 0.25s ease-in-out;background-position:center;background-size:cover;background:transparent"
5+
style="overflow:auto;position:fixed;top:0;bottom:0;right:0;left:0;transition:background 0.25s ease-in-out;background-position:center;background-size:cover;background:transparent"
66
>
77
<button>
88
You should be able to switch backgrounds for this story
@@ -12,7 +12,7 @@ exports[`Storyshots Addons|Backgrounds story 1 1`] = `
1212

1313
exports[`Storyshots Addons|Backgrounds story 2 1`] = `
1414
<div
15-
style="overflow:scroll;position:fixed;top:0;bottom:0;right:0;left:0;transition:background 0.25s ease-in-out;background-position:center;background-size:cover;background:transparent"
15+
style="overflow:auto;position:fixed;top:0;bottom:0;right:0;left:0;transition:background 0.25s ease-in-out;background-position:center;background-size:cover;background:transparent"
1616
>
1717
<button>
1818
This one too!

0 commit comments

Comments
 (0)