diff --git a/server/models/views/lib/process-imtd-thresholds.js b/server/models/views/lib/process-imtd-thresholds.js index 97ccaadf1..c175910ee 100644 --- a/server/models/views/lib/process-imtd-thresholds.js +++ b/server/models/views/lib/process-imtd-thresholds.js @@ -62,7 +62,7 @@ function calculateAlertThreshold (imtdThresholds, stationStageDatum, stationSubt description: Number(imtdThresholdAlert) !== Number(pc5) ? 'Low lying land flooding possible above this level. One or more flood alerts may be issued' : 'Top of normal range. Low lying land flooding possible above this level. One or more flood alerts may be issued', - shortname: 'Possible flood alerts', + shortname: Number(imtdThresholdAlert) !== Number(pc5) ? 'Possible flood alerts' : 'Top of normal range', value: imtdThresholdAlert } } diff --git a/server/src/sass/components/_latest-levels-box.scss b/server/src/sass/components/_latest-levels-box.scss index 98886a2b5..e582444bd 100644 --- a/server/src/sass/components/_latest-levels-box.scss +++ b/server/src/sass/components/_latest-levels-box.scss @@ -9,6 +9,8 @@ @include govuk-font($size: 16); margin-top: 0px; margin-bottom: 15px; + padding-top: 5px; + padding-bottom: 4px; font-weight: bold; text-transform: uppercase; background-color: #1C70B8; @@ -19,4 +21,4 @@ color: $govuk-secondary-text-colour; margin: 0; } -} \ No newline at end of file +} diff --git a/test/models/lib/process-imtd-thresholds.js b/test/models/lib/process-imtd-thresholds.js index 6f5390cc0..797bb9605 100644 --- a/test/models/lib/process-imtd-thresholds.js +++ b/test/models/lib/process-imtd-thresholds.js @@ -4,7 +4,7 @@ const data = require('../../data') const lab = exports.lab = Lab.script() const processImtdThresholds = require('../../../server/models/views/lib/process-imtd-thresholds') -const alertExpectedText = { id: 'alertThreshold', description: 'Top of normal range. Low lying land flooding possible above this level. One or more flood alerts may be issued', shortname: 'Possible flood alerts' } +const alertExpectedText = { id: 'alertThreshold', description: 'Top of normal range. Low lying land flooding possible above this level. One or more flood alerts may be issued', shortname: 'Top of normal range' } const warningExpectedText = { id: 'warningThreshold', description: 'Property flooding is possible above this level', shortname: 'Possible flood warnings' } function expectThresholds (thresholds, warningThreshold, alertThreshold) { diff --git a/test/models/station.js b/test/models/station.js index d373916f4..0f3e15916 100644 --- a/test/models/station.js +++ b/test/models/station.js @@ -77,7 +77,7 @@ lab.experiment('Station model test', () => { { id: 'alertThreshold', description: 'Top of normal range. Low lying land flooding possible above this level. One or more flood alerts may be issued', - shortname: 'Possible flood alerts', + shortname: 'Top of normal range', value: '2.84' } ])