diff --git a/package-lock.json b/package-lock.json index 0c0ed17f3..edf51e5cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,7 +5,6 @@ "requires": true, "packages": { "": { - "name": "flood-app", "version": "6.7.4", "hasInstallScript": true, "license": "ISC", diff --git a/server/src/js/components/map/live.js b/server/src/js/components/map/live.js index c4946a123..844cab0e0 100644 --- a/server/src/js/components/map/live.js +++ b/server/src/js/components/map/live.js @@ -697,7 +697,7 @@ maps.createLiveMap = (mapId, options = {}) => { button.setAttribute('data-module', 'govuk-button') } button.id = mapId + '-btn' - button.innerHTML = `${options.btnText || 'View map'}(Visual only)` + button.innerHTML = `(Visual only)` button.className = options.btnClasses || (options.btnType === 'link' ? 'defra-link-icon-s' : 'defra-button-secondary defra-button-secondary--icon') if (options.data && options.data.button) { button.setAttribute('data-journey-click', options.data.button) diff --git a/server/src/sass/components/_navbar.scss b/server/src/sass/components/_navbar.scss index a8482b672..9d097f82b 100644 --- a/server/src/sass/components/_navbar.scss +++ b/server/src/sass/components/_navbar.scss @@ -10,6 +10,7 @@ display: flex; flex-wrap: nowrap; overflow-x: auto; + overflow-y: hidden; -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; -webkit-overflow-scrolling: touch; @@ -28,17 +29,13 @@ &__inner { flex: 0 0 auto; padding: 3px 15px 4px 15px; - // @include mq ($from: tablet) { - // padding-left: 0px; - // padding-right: 0px; - // } } &__group { float: left; } &__list { list-style: none; - margin: 0px 0px -1px; + margin: 0px; padding: 0px; } &__list:after { @@ -70,6 +67,12 @@ border: 0px; box-shadow: 0 4px 0 govuk-colour('black'); outline: 3px solid transparent; + outline-offset: 0px; + } + a:not([keyboard-focus]):focus { + background-color: white; + box-shadow: none; + text-decoration: underline; } // Overides .defra-link-icon-s { @@ -81,7 +84,6 @@ margin-right: 10px; &:not([keyboard-focus]):focus { background-color: white; - // border-color: govuk-colour('mid-grey'); border: 0px; color: govuk-colour('black'); box-shadow: none; @@ -89,13 +91,6 @@ } &:hover { color: govuk-colour('black'); - background-color: transparent; - svg { - color: currentColor; - } - } - &:active { - color: govuk-colour('black'); } } // Modifiers @@ -139,9 +134,9 @@ float: left; border: 0px; color: $govuk-link-colour; - margin: 0px 7.5px 4px 0px; - padding-top: 7.5px; - padding-bottom: 7.5px; + margin: 0px 7px 3px 0px; + padding-top: 7px; + padding-bottom: 7px; text-decoration: none; &:visited { color: $govuk-link-colour; @@ -159,6 +154,7 @@ color: $govuk-link-colour; box-shadow: none; border: 0px; + text-decoration: none; } &:after { content: 'Map'; @@ -166,19 +162,23 @@ svg { position: relative; display: inline-block; + color: currentColor; vertical-align: top; left: 0px; margin: 0px 7px -3px 1px; top: -1px; } - span { + .defra-button-secondary__icon { + color: govuk-colour('black'); + } + .defra-button-secondary__text { @include defra-visually-hidden(); } } .defra-navbar__item a { color: $govuk-link-colour; text-decoration: none; - padding: 7.5px; + padding: 7px 6px; } .defra-navbar__item a:visited { color: $govuk-link-colour; @@ -187,21 +187,35 @@ color: $govuk-link-hover-colour; svg { color: $govuk-link-hover-colour; - @include high-contrast-mode-only { - color: currentColor; - } + } + } + .defra-navbar__item--selected a{ + background-color: transparent; + color: $govuk-link-colour; + &:after { + content: ''; + position: absolute; + bottom: -4px; + left: 0px; + right: 0px; + border-bottom: 4px solid currentColor; } } .defra-navbar__item a:focus { color: govuk-colour('black'); + background-color: $govuk-focus-colour; + text-decoration: none; + box-shadow: 0 4px 0 govuk-colour('black'); + outline: 3px solid transparent; + outline-offset: 0px; svg { - color: currentColor; + color: govuk-colour('black'); } } - .defra-navbar__item--selected a:not(:focus) { - background-color: transparent; - border-bottom: 4px solid currentColor; + .defra-navbar__item a:not([keyboard-focus]):focus { + background-color: white; color: $govuk-link-colour; - } + box-shadow: none; + } } } diff --git a/server/views/rainfall-station.html b/server/views/rainfall-station.html index dc338bec8..5b6780950 100644 --- a/server/views/rainfall-station.html +++ b/server/views/rainfall-station.html @@ -49,14 +49,22 @@
{{ model.distStatement }}
{% endif %} +{{ model.distStatement }}
+ {% endif %} -If you searched for a river or place in England, you should:
-If you want to search for a place outside England, you should go to:
- -Measuring station | -1 hour | -6 hours | -24 hours | -
---|---|---|---|
Measuring station | -Height | -Trend | -State | -
Measuring station | +1 hour | +6 hours | +24 hours | +
---|---|---|---|
Measuring station | +Height | +Trend | +State | +
This measuring station takes 2 measurements. You're viewing the downstream level. View the upstream level.
+This measuring station takes 2 measurements. You're viewing the downstream level. View the upstream level.
{% else %} -This measuring station takes 2 measurements. You're viewing the upstream level. View the downstream level.
+This measuring station takes 2 measurements. You're viewing the upstream level. View the downstream level.
{% endif %}