Skip to content

Commit

Permalink
Merge pull request #122 from hosmelq/master
Browse files Browse the repository at this point in the history
add class with the popover placement
  • Loading branch information
jasonkuhrt authored Sep 22, 2017
2 parents 45db716 + e4d0bad commit 3bf015c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ dev-build
.tern-port
npm-debug.log*
build/

.idea
5 changes: 3 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,14 +443,15 @@ const Popover = createReactClass({
if (this.state.exited) return null

const { className = "", style = {}} = this.props
const { standing } = this.state;

const popoverProps = {
className: `Popover ${className}`,
className: `Popover Popover-${standing} ${className}`,
style: { ...coreStyle, ...style }
}

const tipProps = {
direction: faces[this.state.standing],
direction: faces[standing],
size: this.props.tipSize,
}

Expand Down

0 comments on commit 3bf015c

Please sign in to comment.