From dedbc122c666a68de4759be7b7c70e698e3e2c28 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Mon, 2 Nov 2015 09:21:08 -0500
Subject: Overlay fixes and added class prop for tips

---
 web/react/components/tutorial/tutorial_tip.jsx | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

(limited to 'web/react/components/tutorial/tutorial_tip.jsx')

diff --git a/web/react/components/tutorial/tutorial_tip.jsx b/web/react/components/tutorial/tutorial_tip.jsx
index 3482a7cfa..118209599 100644
--- a/web/react/components/tutorial/tutorial_tip.jsx
+++ b/web/react/components/tutorial/tutorial_tip.jsx
@@ -79,6 +79,12 @@ export default class TutorialTip extends React.Component {
                     ref='target'
                 />
 
+                <Overlay
+                    show={this.state.show}
+                >
+                    <div className='tip-backdrop'/>
+                </Overlay>
+
                 <Overlay
                     placement={this.props.placement}
                     show={this.state.show}
@@ -86,7 +92,7 @@ export default class TutorialTip extends React.Component {
                     onHide={this.toggle}
                     target={() => this.refs.target}
                 >
-                    <div className='tip-overlay'>
+                    <div className={'tip-overlay ' + this.props.overlayClass}>
                         {this.props.screens[this.state.currentScreen]}
                         <div className='tutorial__circles'>{dots}</div>
                         <div className='text-right'>
@@ -113,7 +119,12 @@ export default class TutorialTip extends React.Component {
     }
 }
 
+TutorialTip.defaultProps = {
+    overlayClass: ''
+};
+
 TutorialTip.propTypes = {
     screens: React.PropTypes.array.isRequired,
-    placement: React.PropTypes.string.isRequired
+    placement: React.PropTypes.string.isRequired,
+    overlayClass: React.PropTypes.string
 };
-- 
cgit v1.2.3-1-g7c22

