Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix share button errors and projection button errors - Add jquery-ui `effect-slide` to resolve jquery easing console errors - Remove jquery-ui menu li css and override menu ul padding to maintain consistent look since dependency css is different than previously used version. - Define `Share` inside of import brackets and fix label color - Fix `React.createElement: type should not be null, undefined, boolean, or number.` error - Add css to fix the shorten link label color

ZachTRiceea581755d856
diff --git a/web/css/link.css b/web/css/link.css
index 137bfa05e..a48cdac64 100644
--- a/web/css/link.css
+++ b/web/css/link.css
@@ -105,6 +105,7 @@
#wv-link-shorten {
margin-top: 15px;
width: 100%;
+ color: #fff;
}
#social-share {
diff --git a/web/css/reset.css b/web/css/reset.css
index c4d829060..345d154fb 100644
--- a/web/css/reset.css
+++ b/web/css/reset.css
@@ -414,6 +414,7 @@ div.horizontalContainer {
.ui-menu {
position: absolute;
width: 150px;
+ padding: 0;
z-index: 1000;
}
@@ -569,11 +570,6 @@ label {
color: #fff;
}
-.ui-menu .ui-menu-item {
- padding-top: 5px;
- padding-bottom: 5px;
-}
-
/* style for UI dialog buttons that are hovered over */
.ui-widget-content .ui-state-hover {
border-color: #eee;
diff --git a/web/js/link/ui.js b/web/js/link/ui.js
index 3b109d7d6..91fdc4dee 100644
--- a/web/js/link/ui.js
+++ b/web/js/link/ui.js
@@ -6,7 +6,7 @@ import loThrottle from 'lodash/throttle';
import React from 'react';
import ReactDOM from 'react-dom';
import Clipboard from 'clipboard';
-import Share, {GA as googleAnalytics} from 'worldview-components';
+import {Share, GA as googleAnalytics} from 'worldview-components';
import util from '../util/util';
import wvui from '../ui/ui';
diff --git a/web/js/projection/ui.js b/web/js/projection/ui.js
index b1e91e984..e68713cf4 100644
--- a/web/js/projection/ui.js
+++ b/web/js/projection/ui.js
@@ -1,4 +1,5 @@
import $ from 'jquery';
+import 'jquery-ui/effect-slide';
import 'jquery-ui/button';
import 'jquery-ui/menu';
import loEach from 'lodash/each';