From ba00e9af6a5948bc88f4cf4a34a406b376911f7c Mon Sep 17 00:00:00 2001 From: Artem Date: Wed, 20 Dec 2017 14:24:11 +0200 Subject: [PATCH] Fix triangle wrong color bug --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3f45312..ab0d220 100644 --- a/src/index.js +++ b/src/index.js @@ -258,7 +258,7 @@ class PopoverTooltip extends React.PureComponent { const labelContainerStyle = this.props.labelContainerStyle; const borderStyle = labelContainerStyle && labelContainerStyle.backgroundColor - ? { borderTopColor: labelContainerStyle.backgroundColor } + ? this.props.setBelow ? { borderBottomColor: labelContainerStyle.backgroundColor } : { borderTopColor: labelContainerStyle.backgroundColor } : null; let triangleDown = null; let triangleUp = null;