diff --git a/web/js/components/animation-widget/gif-post-creation.js b/web/js/components/animation-widget/gif-post-creation.js index 4f05cc1edb..a997902efb 100644 --- a/web/js/components/animation-widget/gif-post-creation.js +++ b/web/js/components/animation-widget/gif-post-creation.js @@ -35,6 +35,7 @@ export default class GifResults extends Component { screenWidth, screenHeight, onClose, + closeBtn, } = this.props; const { blob } = gifObject; const { size } = gifObject; @@ -57,7 +58,7 @@ export default class GifResults extends Component { className="dynamic-modal" toggle={onClose} > - GIF Results + GIF Results
diff --git a/web/js/components/animation-widget/loading-indicator.js b/web/js/components/animation-widget/loading-indicator.js index 0a95758334..f1d8918428 100644 --- a/web/js/components/animation-widget/loading-indicator.js +++ b/web/js/components/animation-widget/loading-indicator.js @@ -25,6 +25,12 @@ export default function LoadingIndicator(props) {
); + const closeBtn = ( + + ); + return ( - {title} + {title} {bodyMsg && (
{bodyMsg}
diff --git a/web/js/components/tour/modal-tour-complete.js b/web/js/components/tour/modal-tour-complete.js index 12dc6175f7..dee35fc4c5 100644 --- a/web/js/components/tour/modal-tour-complete.js +++ b/web/js/components/tour/modal-tour-complete.js @@ -9,6 +9,11 @@ function ModalComplete(props) { currentStory, modalComplete, resetTour, endTour, } = props; const { readMoreLinks } = currentStory; + const closeBtn = ( + + ); let list; if ( readMoreLinks @@ -40,7 +45,7 @@ function ModalComplete(props) { fade={false} keyboard > - + Story Complete diff --git a/web/js/components/tour/modal-tour-start.js b/web/js/components/tour/modal-tour-start.js index 65fd716891..e25f2dbfbd 100644 --- a/web/js/components/tour/modal-tour-start.js +++ b/web/js/components/tour/modal-tour-start.js @@ -20,34 +20,9 @@ class ModalStart extends React.Component { this.state = { checked: props.checked, }; - - this.setWrapperRef = this.setWrapperRef.bind(this); - this.handleClickOutside = this.handleClickOutside.bind(this); this.handleCheck = this.handleCheck.bind(this); } - componentDidMount() { - document.addEventListener('mousedown', this.handleClickOutside); - } - - componentWillUnmount() { - document.removeEventListener('mousedown', this.handleClickOutside); - } - - // Set a reference to the inner div for checking clicks outside of the scrollbar - setWrapperRef(node) { - this.wrapperRef = node; - } - - // Use custom clickOutside function since we contained the clickable area with - // CSS to have a cleaner looking scrollbar - handleClickOutside(e) { - const { toggleModalStart } = this.props; - if (this.wrapperRef && !this.wrapperRef.contains(e.target)) { - toggleModalStart(e); - } - } - // Handle the show/hide checkbox state handleCheck() { const { hideTour, showTour } = this.props; @@ -81,7 +56,6 @@ class ModalStart extends React.Component { backdrop fade={false} keyboard={false} - innerRef={this.setWrapperRef} > Welcome to @NAME@! diff --git a/web/js/containers/gif.js b/web/js/containers/gif.js index 3ffbba8286..f57dbbb721 100644 --- a/web/js/containers/gif.js +++ b/web/js/containers/gif.js @@ -83,6 +83,15 @@ class GIF extends Component { }; } + renderCloseBtn() { + const { onClose } = this.props; + return ( + + ); + } + renderSelectableBox() { const { increment, @@ -114,6 +123,9 @@ class GIF extends Component { isGeoProjection, proj.resolutions, ); + + const closeBtn = this.renderCloseBtn(); + return ( - Create An Animated GIF + Create An Animated GIF - {headerText} + {headerText} {progress > 0 ? : (
- +
)}
@@ -384,6 +398,7 @@ class GIF extends Component { boundaries={boundaries} screenWidth={screenWidth} screenHeight={screenHeight} + closeBtn={closeBtn} /> ); } diff --git a/web/scss/components/modal.scss b/web/scss/components/modal.scss index fbd8d0f559..113d62707e 100644 --- a/web/scss/components/modal.scss +++ b/web/scss/components/modal.scss @@ -122,7 +122,10 @@ color: #ddd; background: transparent; border: none; - font-size: 24px; + font-size: 26px; + font-weight: 400; + padding-bottom: 4px; + text-shadow: 1px 1px 1px #000; } .modal-close-btn:hover {