Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix checkbox issue

Jason Kent55369b4e17a9
diff --git a/web/css/layers.css b/web/css/layers.css
index 86c6fe65c..3b477b842 100644
--- a/web/css/layers.css
+++ b/web/css/layers.css
@@ -177,7 +177,7 @@
}
.layer-list-container .layers-all-layer {
- transition: background-color 500ms linear;
+ transition: background-color 300ms ease-out;
top: 0;
left: 0;
&.measurement-row {
@@ -187,14 +187,15 @@
top: 0;
left: 0;
transition: all 200ms linear;
- background: #222;
- border-left: 8px solid #d54f21;
+ background: #ddd;
+ border-left: 6px solid #d54f21;
& .layers-all-header > h3 {
- color: #fff;
+ color: #000;
font-weight: 500;
}
- & .layers-all-header > h5 {
- color: #aaa;
+ & .layers-all-header > h4,
+ .layers-all-header > h5 {
+ color: #333;
}
}
&:hover:not(.selected) {
@@ -362,20 +363,17 @@
}
.layers-all-layer.search-row {
- padding: 0 0 0.5em;
+ padding: 8px 5px;
.layers-all-header {
padding: 0 0 0 45px;
}
& .wv-checkbox {
- top: 10px;
- left: 10px;
+ left: 8px;
cursor: pointer;
+ float: left;
}
& .wv-checkbox:hover:not(.checked)::before {
- background-color: #444;
- }
- & .wv-checkbox:not(.checked)::before {
- background-color: #333;
+ background-color: rgba(0, 0, 0, 0.25);
}
}
@@ -903,6 +901,15 @@
padding: 1px 7px;
margin: 0 12px 0 0;
}
+ & .layers-all-layer .search-row .wv-checkbox {
+ left: 4px;
+ &::before {
+ font-size: 20px;
+ line-height: 25px;
+ height: 30px;
+ width: 30px;
+ }
+ }
}
.layer-modal-content .results-text {
diff --git a/web/js/components/layer/product-picker/search-layer-row.js b/web/js/components/layer/product-picker/search-layer-row.js
index 149958067..4054e0fa9 100644
--- a/web/js/components/layer/product-picker/search-layer-row.js
+++ b/web/js/components/layer/product-picker/search-layer-row.js
@@ -77,19 +77,20 @@ class LayerRow extends React.Component {
return (
<div className={rowClass}>
- <input
- type="checkbox"
- id={layer.id + '-checkbox'}
- title={title}
- name={name}
- checked={checked}
- className={checkboxClass}
- onChange={this.toggleCheck.bind(this)}
- />
+ <div className={checkboxClass}>
+ <input
+ type="checkbox"
+ id={layer.id + '-checkbox'}
+ title={title}
+ name={name}
+ checked={checked}
+ onChange={this.toggleCheck.bind(this)}
+ />
+ </div>
<div className="layers-all-header" onClick={e => this.showMetadata(e)}>
{!track ? this.renderSplitTitle(layerTitle) : <h3>{layerTitle}</h3>}
{subtitle && <h5>{subtitle}</h5>}
- {description && (
+ {description && !isMetadataShowing && (
<i className="fa fa-info-circle" />
)}
</div>