Skip to content

Commit 76577f7

Browse files
committed
[docs] Fix broken sticky bottom bar demo
1 parent be0c695 commit 76577f7

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,23 @@
11
import React from 'react';
22

3-
import { EuiBottomBar, EuiSpacer, EuiText } from '../../../../src/components';
3+
import { EuiBottomBar, EuiText } from '../../../../src/components';
44

55
export default () => {
66
return (
7-
<>
7+
<div css={{ overflow: 'auto', blockSize: 200 }}>
88
<EuiText>
99
<p>
10-
When scrolling past this example block, the{' '}
11-
<strong>EuiBottomBar</strong> will stick to the bottom of the browser
12-
window (with a 10px offset), but keeps it within the bounds of its
13-
parent.
10+
When scrolling within this example, the <strong>EuiBottomBar</strong>{' '}
11+
will stick to the bottom of scrollable container (with a 10px offset),
12+
but will not scroll with the page itself.
1413
</p>
1514
</EuiText>
16-
<EuiSpacer size="xl" />
17-
<EuiSpacer size="xl" />
15+
<div css={{ blockSize: 400 }} />
1816
<EuiBottomBar position="sticky" bottom={10}>
1917
<EuiText textAlign="center">
2018
<p>Scroll to see!</p>
2119
</EuiText>
2220
</EuiBottomBar>
23-
</>
21+
</div>
2422
);
2523
};

0 commit comments

Comments
 (0)