Skip to content

Commit

Permalink
chore: more popover placement storybook entries
Browse files Browse the repository at this point in the history
  • Loading branch information
Prasad Thakur committed Nov 13, 2019
1 parent 863bd76 commit b65f166
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions src/Popover/__stories__/Popover.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,46 +29,66 @@ storiesOf('Components|Popover', module)
))
.add('Placement', () => (
<>
<Popover
body={someText}
control={<Button glyph='navigation-up-arrow' option='light' >Pop to Top-Start</Button>}
placement='top-start'
style={{ position: 'fixed', top: '10em', left: '35em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-up-arrow' option='light' >Pop to Top</Button>}
placement='top'
style={{ position: 'fixed', top: '10em', left: '50em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-up-arrow' option='light' >Pop to Top-End</Button>}
placement='top-end'
style={{ position: 'fixed', top: '10em', left: '65em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-right-arrow' option='light' >Pop to Right-Top</Button>}
placement='right-start'
style={{ position: 'fixed', top: '15em', left: '60em' }} />
style={{ position: 'fixed', top: '15em', left: '65em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-right-arrow' option='light' >Pop to Right</Button>}
placement='right'
style={{ position: 'fixed', top: '20em', left: '60em' }} />
style={{ position: 'fixed', top: '20em', left: '65em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-right-arrow' option='light' >Pop to Right-End</Button>}
placement='right-end'
style={{ position: 'fixed', top: '25em', left: '60em' }} />
style={{ position: 'fixed', top: '25em', left: '65em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-down-arrow' option='light' >Pop to Bottom-End</Button>}
placement='bottom-end'
style={{ position: 'fixed', top: '30em', left: '65em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-down-arrow' option='light' >Pop to Bottom</Button>}
placement='bottom'
style={{ position: 'fixed', top: '30em', left: '50em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-down-arrow' option='light' >Pop to Bottom-Start</Button>}
placement='bottom-start'
style={{ position: 'fixed', top: '30em', left: '35em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-left-arrow' option='light' >Pop to Left-End</Button>}
placement='left-end'
style={{ position: 'fixed', top: '25em', left: '40em' }} />
style={{ position: 'fixed', top: '25em', left: '35em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-left-arrow' option='light' >Pop to Left</Button>}
placement='left'
style={{ position: 'fixed', top: '20em', left: '40em' }} />
style={{ position: 'fixed', top: '20em', left: '35em' }} />
<Popover
body={someText}
control={<Button glyph='navigation-left-arrow' option='light' >Pop to Left-Start</Button>}
placement='left-start'
style={{ position: 'fixed', top: '15em', left: '40em' }} />
style={{ position: 'fixed', top: '15em', left: '35em' }} />
</>
))
.add('disable styles', () => (
Expand Down

0 comments on commit b65f166

Please sign in to comment.