Skip to content

Commit

Permalink
fixed chart label and latest levels CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeGordon83 committed Oct 15, 2024
1 parent 634901c commit 6fc7009
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/models/views/lib/process-imtd-thresholds.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down
4 changes: 3 additions & 1 deletion server/src/sass/components/_latest-levels-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -19,4 +21,4 @@
color: $govuk-secondary-text-colour;
margin: 0;
}
}
}
2 changes: 1 addition & 1 deletion test/models/lib/process-imtd-thresholds.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion test/models/station.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
])
Expand Down

0 comments on commit 6fc7009

Please sign in to comment.