Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Popover/Tooltip): add ability to hide arrow (#814) #815

Merged
merged 2 commits into from
Feb 9, 2018

Conversation

gergely-nagy
Copy link
Collaborator

Added hideArrow prop to Popover, Tooltip and PopperContent according to #814 .

@@ -162,7 +165,7 @@ class PopperContent extends React.Component {
return (
<ReactPopper modifiers={extendedModifiers} {...attrs} component={tag} className={popperClassName}>
{children}
<Arrow className={arrowClassName} />
{hideArrow ? null : <Arrow className={arrowClassName} />}
Copy link
Collaborator

@supergibbs supergibbs Feb 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This syntax is a little nicer {!hideArrow && <Arrow className={arrowClassName} />}. Looks good otherwise!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, that was a dilemma for me too. I will fix it.

@supergibbs supergibbs added this to To Do in v5.0.0 via automation Feb 8, 2018
@TheSharpieOne TheSharpieOne merged commit 43efe8b into reactstrap:master Feb 9, 2018
v5.0.0 automation moved this from To Do to Done Feb 9, 2018
@gergely-nagy gergely-nagy deleted the feat/hide-arrow branch February 9, 2018 08:13
jlaramie pushed a commit to jlaramie/reactstrap that referenced this pull request Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v5.0.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants