diff --git a/app/assets/stylesheets/partials/_search.scss b/app/assets/stylesheets/partials/_search.scss index ee25cfa9..bc2f517f 100644 --- a/app/assets/stylesheets/partials/_search.scss +++ b/app/assets/stylesheets/partials/_search.scss @@ -9,7 +9,9 @@ padding: 2.4rem 2rem 1rem 2.4rem; details { - margin-top: 1rem; + &:first-of-type { + margin-top: 1rem; + } .field-container { margin-top: 1rem; @@ -78,16 +80,16 @@ #geobox-search-panel, #geodistance-search-panel { - label::after { - color: $red-muted; - content: '*'; - } .geo-label, - .geo-desc { + .geo-desc, + .hint { display: block; + color: $black; + } + .geo-label { + font-weight: $fw-bold; } .geo-desc { - font-size: $fs-xsmall; margin-bottom: 2rem; } #maxLat-desc, diff --git a/app/javascript/search_form.js b/app/javascript/search_form.js index c11cb8a6..2521876f 100644 --- a/app/javascript/search_form.js +++ b/app/javascript/search_form.js @@ -40,7 +40,7 @@ function disableGeobox() { field.setAttribute('aria-required', false); }); geobox_label.classList = 'closed'; - geobox_label.innerText = 'Bounding box search'; + geobox_label.innerText = 'Geospatial bounding box search'; }; function enableGeobox() { @@ -94,7 +94,7 @@ function enableGeodistance() { field.setAttribute('aria-required', true); }); geodistance_label.classList = 'open'; - geodistance_label.innerText = 'Close geospatial distance search'; + geodistance_label.innerText = 'Close distance search'; }; diff --git a/app/views/search/_form.html.erb b/app/views/search/_form.html.erb index fa35c0ea..9f9db14a 100644 --- a/app/views/search/_form.html.erb +++ b/app/views/search/_form.html.erb @@ -15,7 +15,7 @@ if params[:advanced] == "true" search_required = false end -geobox_label = "Bounding box search" +geobox_label = "Geospatial bounding box search" geobox_label_class = "closed" if params[:geobox] == "true" geobox_label = "Close bounding box search" @@ -27,7 +27,7 @@ end geodistance_label = "Geospatial distance search" geodistance_label_class = "closed" if params[:geodistance] == "true" - geodistance_label = "Close geospatial distance search" + geodistance_label = "Close distance search" geodistance_label_class = "open" geodistance_required = true search_required = false @@ -50,6 +50,7 @@ end