-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from yjose/fixes
Fixes
- Loading branch information
Showing
7 changed files
with
105 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* eslint-disable jsx-a11y/anchor-is-valid */ | ||
import React from 'react'; | ||
|
||
import Popup from '../../src'; | ||
|
||
const PopupFuncProps = { | ||
className: 'test', | ||
arrowStyle: {}, | ||
contentStyle: {}, | ||
overlayStyle: {}, | ||
on: 'click', | ||
}; | ||
|
||
const PopupStyle = props => ( | ||
<div> | ||
<div style={{height: '800px'}}> scroll to bottom :) </div> | ||
<div style={{height: '100px', background: 'red', position: 'relative'}}> | ||
<Popup {...props} trigger={<button type="button"> Button 2</button>}> | ||
{close => ( | ||
<div> | ||
Lorem ipsum dolor sit amet consectetur adipisicing elit. Nemo | ||
voluptas s lore Lorem ipsum dolor sit amet consectetur adipisicing | ||
elit. Nemo voluptas s loreLorem ipsum dolor sit amet consectetur | ||
adipisicing elit. Nemo voluptas s loreLorem ipsum dolor sit amet | ||
consectetur adipisicing elit. Nemo voluptas s lore | ||
<a | ||
className="close" | ||
onClick={close} | ||
style={{margin: '10px', background: 'red'}}> | ||
close here × | ||
</a>{' '} | ||
</div> | ||
)} | ||
</Popup> | ||
</div> | ||
</div> | ||
); | ||
|
||
const PopupStyleStory = { | ||
name: 'Popup Style', | ||
component: PopupStyle, | ||
props: PopupFuncProps, | ||
}; | ||
|
||
export default PopupStyleStory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters