Interactive interface for browsing global, full-resolution satellite imagery
Show title of disabled buttons
Benjamin Kingc74e31463e8f
diff --git a/web/css/button.css b/web/css/button.cssindex a23bd55f3..8a42e1efb 100644--- a/web/css/button.css+++ b/web/css/button.css@@ -11,7 +11,7 @@background-image: linear-gradient(#555, #666);background-image: -ms-linear-gradient(#555, #666);background-image: -o-linear-gradient(#555, #666);- font-family: "Segoe UI", "Arial", sans-serif;+ font-family: 'Segoe UI', 'Arial', sans-serif;padding: 0;}.wv-button span {diff --git a/web/css/timeline.css b/web/css/timeline.cssindex 4f8055055..e4e9f03bd 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -253,11 +253,18 @@ button:focus {#timeline-header .animate-button.wv-disabled-button {cursor: auto;- pointer-events: none;+ pointer-events: auto;+}+#timeline-header .animate-button.wv-disabled-button:hover {+ background-color: transparent;+}+#timeline-header .animate-button.wv-disabled-button:hover .wv-animate {+ opacity: 0.5;+ color: #fff;}-#timeline-header .animate-button.wv-disabled-button .wv-animate {opacity: 0.5;+ pointer-events: none;}#timeline-header,diff --git a/web/css/toolbar.css b/web/css/toolbar.cssindex c7b8e5cea..c70052713 100644--- a/web/css/toolbar.css+++ b/web/css/toolbar.css@@ -23,7 +23,14 @@background-color: #fff;color: #1a1a1a;}-.wv-toolbar .wv-toolbar-button.disabled {+.wv-toolbar .wv-toolbar-button.disabled:hover {+ background-color: rgba(40, 40, 40, 0.85);+ color: #eee;+}+.wv-toolbar .btn.disabled {+ pointer-events: auto;+}+.wv-toolbar .btn.disabled:hover i {pointer-events: none;}diff --git a/web/js/components/timeline/timeline-controls/animation-button.js b/web/js/components/timeline/timeline-controls/animation-button.jsindex 66aa015b9..4a3ddb369 100644--- a/web/js/components/timeline/timeline-controls/animation-button.js+++ b/web/js/components/timeline/timeline-controls/animation-button.js@@ -9,11 +9,11 @@ class AnimationButton extends PureComponent {className={this.props.disabled ? 'wv-disabled-button ' + className : className}- id="animate-button"title={this.props.title ? this.props.title : 'Set up animation'}- onClick={this.props.clickAnimationButton}>- <i id="wv-animate" className="fas fa-video wv-animate" />+ <div id="animate-button" onClick={this.props.clickAnimationButton}>+ <i className="fas fa-video wv-animate" />+ </div></div>);}diff --git a/web/js/containers/toolbar.js b/web/js/containers/toolbar.jsindex c0b778d3a..3a3cc0d4d 100644--- a/web/js/containers/toolbar.js+++ b/web/js/containers/toolbar.js@@ -179,7 +179,7 @@ class toolbarContainer extends Component {title={isCompareActive? 'You must exit comparison mode to use the snapshot feature'- : isImageDownloadActive+ : !isImageDownloadActive? 'You must exit data download mode to use the snapshot feature': 'Take a snapshot'}@@ -204,7 +204,7 @@ class toolbarContainer extends Component {}}function mapStateToProps(state) {- const { notifications, palettes, compare, map, layers, proj } = state;+ const { notifications, palettes, compare, map, layers, proj, data } = state;const { number, type } = notifications;const activeString = compare.activeString;const activeLayersForProj = getLayers(@@ -213,12 +213,15 @@ function mapStateToProps(state) {state);const isCompareActive = compare.active;+ const isDataDownloadActive = data.active;return {notificationType: type,notificationContentNumber: number,config: state.config,isImageDownloadActive: Boolean(- lodashGet(state, 'map.ui.selected') && !isCompareActive+ lodashGet(state, 'map.ui.selected') &&+ !isCompareActive &&+ !isDataDownloadActive),isCompareActive,hasCustomPalette: hasCustomPaletteInActiveProjection(