Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Remove line over mobile-btn-txt #wv-2097

Ben59b550e579bc
diff --git a/web/js/components/timeline/mobile-date-picker.js b/web/js/components/timeline/mobile-date-picker.js
index 2f3df64fc..119a2a363 100644
--- a/web/js/components/timeline/mobile-date-picker.js
+++ b/web/js/components/timeline/mobile-date-picker.js
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import DatePicker from 'react-mobile-datepicker';
import { getDisplayDate, getISODateFormatted } from './date-util';
import { MONTH_STRING_ARRAY } from '../../modules/date/constants';
-import HoverTooltip from '../util/hover-tooltip';
// https://www.npmjs.com/package/react-mobile-datepicker
// configs for date order, caption, and date step
@@ -152,7 +151,6 @@ class MobileDatePicker extends Component {
const {
date,
hasSubdailyLayers,
- isMobile,
} = this.props;
const displayDate = getDisplayDate(date, hasSubdailyLayers);
@@ -163,13 +161,9 @@ class MobileDatePicker extends Component {
className="mobile-date-picker-select-btn"
onClick={this.handleClickDateButton}
>
- <HoverTooltip
- isMobile={isMobile}
- labelText="Select the date"
- placement="top"
- target=".mobile-date-picker-select-btn"
- />
- {displayDate}
+ <div className="mobile-date-picker-select-btn-text">
+ <span>{displayDate}</span>
+ </div>
</div>
<DatePicker
dateConfig={hasSubdailyLayers ? subDailyDateConfig : defaultDateConfig}
@@ -196,7 +190,6 @@ MobileDatePicker.propTypes = {
date: PropTypes.object,
endDateLimit: PropTypes.string,
hasSubdailyLayers: PropTypes.bool,
- isMobile: PropTypes.bool,
onDateChange: PropTypes.func,
startDateLimit: PropTypes.string,
};
diff --git a/web/scss/features/timeline.scss b/web/scss/features/timeline.scss
index a8b7dcd8f..2bab105f1 100644
--- a/web/scss/features/timeline.scss
+++ b/web/scss/features/timeline.scss
@@ -728,13 +728,15 @@ button:focus {
background: $wv-transparent-black;
color: #fff;
border: thin solid #333;
- font-size: 23px;
- padding: 14px 8px;
border-radius: 5px;
white-space: nowrap;
cursor: pointer;
- height: 44px;
- font-family: $wv-monospace-font;
+ & .mobile-date-picker-select-btn-text {
+ height: 44px;
+ font-family: $wv-monospace-font;
+ font-size: 23px;
+ padding: 14px 8px;
+ }
}
.datepicker-modal {