File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
src-docs/src/views/bottom_bar Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
- import { EuiBottomBar , EuiSpacer , EuiText } from '../../../../src/components' ;
3
+ import { EuiBottomBar , EuiText } from '../../../../src/components' ;
4
4
5
5
export default ( ) => {
6
6
return (
7
- < >
7
+ < div css = { { overflow : 'auto' , blockSize : 200 } } >
8
8
< EuiText >
9
9
< 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.
14
13
</ p >
15
14
</ EuiText >
16
- < EuiSpacer size = "xl" />
17
- < EuiSpacer size = "xl" />
15
+ < div css = { { blockSize : 400 } } />
18
16
< EuiBottomBar position = "sticky" bottom = { 10 } >
19
17
< EuiText textAlign = "center" >
20
18
< p > Scroll to see!</ p >
21
19
</ EuiText >
22
20
</ EuiBottomBar >
23
- </ >
21
+ </ div >
24
22
) ;
25
23
} ;
You can’t perform that action at this time.
0 commit comments