From 9de9bfc505f48e496492e0797992e0b370d16bf9 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 8 Jul 2024 16:27:20 +0100 Subject: [PATCH] Updated Stats colours in All Reports page With these new colors it should comply with WCAG color contrast requirement(Headlines AA (3:1)) --- templates/web/base/reports/index.html | 16 ++++++++-------- .../fixmystreet.com/images/healthcheck-bad.svg | 2 +- .../fixmystreet.com/images/healthcheck-good.svg | 2 +- web/js/dashboard.js | 6 +++--- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/templates/web/base/reports/index.html b/templates/web/base/reports/index.html index 2444d32b045..db43e9c1fca 100755 --- a/templates/web/base/reports/index.html +++ b/templates/web/base/reports/index.html @@ -29,8 +29,8 @@

[% loc('All time') %]

data-values-reports="[[% problems_reported_by_period.join(',') %]]" data-values-fixed="[[% problems_fixed_by_period.join(',') %]]" > - [% tprintf(nget("%s problem reported", "%s problems reported", problems_reported_by_period.last), decode(problems_reported) _ '') %] - [% tprintf(nget("%s problem marked as fixed", "%s problems marked as fixed", problems_fixed_by_period.last), decode(problems_fixed) _ '') %] + [% tprintf(nget("%s problem reported", "%s problems reported", problems_reported_by_period.last), decode(problems_reported) _ '') %] + [% tprintf(nget("%s problem marked as fixed", "%s problems marked as fixed", problems_fixed_by_period.last), decode(problems_fixed) _ '') %] @@ -41,20 +41,20 @@

[% loc('Last 7 days') %]

- - [% tprintf(nget("%s problem reported", "%s problems reported", last_seven_days.problems_total), decode(last_seven_reported) _ '') %] + + [% tprintf(nget("%s problem reported", "%s problems reported", last_seven_days.problems_total), decode(last_seven_reported) _ '') %]
- - [% tprintf(nget("%s update on problems", "%s updates on problems", last_seven_days.updated_total), decode(last_seven_updated) _ '') %] + + [% tprintf(nget("%s update on problems", "%s updates on problems", last_seven_days.updated_total), decode(last_seven_updated) _ '') %]
- - [% tprintf(nget("%s problem marked as fixed", "%s problems marked as fixed", last_seven_days.fixed_total), decode(last_seven_fixed) _ '') %] + + [% tprintf(nget("%s problem marked as fixed", "%s problems marked as fixed", last_seven_days.fixed_total), decode(last_seven_fixed) _ '') %]
diff --git a/web/cobrands/fixmystreet.com/images/healthcheck-bad.svg b/web/cobrands/fixmystreet.com/images/healthcheck-bad.svg index 1722d5eccf4..032f5df0ed6 100644 --- a/web/cobrands/fixmystreet.com/images/healthcheck-bad.svg +++ b/web/cobrands/fixmystreet.com/images/healthcheck-bad.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/web/cobrands/fixmystreet.com/images/healthcheck-good.svg b/web/cobrands/fixmystreet.com/images/healthcheck-good.svg index 3343297c95b..b267e1087e8 100644 --- a/web/cobrands/fixmystreet.com/images/healthcheck-good.svg +++ b/web/cobrands/fixmystreet.com/images/healthcheck-good.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/web/js/dashboard.js b/web/js/dashboard.js index 48a273ed68a..10d212adff6 100644 --- a/web/js/dashboard.js +++ b/web/js/dashboard.js @@ -8,10 +8,10 @@ $(function(){ var colours = [ '#FF4343', // red - '#F4A140', // orange + '#D97B0C', // orange '#FFD000', // yellow - '#62B356', // green - '#4D96E5', // blue + '#56A54A', // green + '#269AE9', // blue '#B446CA', // purple '#7B8B98', // gunmetal '#BCB590', // taupe