From 45607148aa83166f2cee5b9d63795ebd752246f3 Mon Sep 17 00:00:00 2001 From: alexjanousekGSA Date: Tue, 22 Jul 2025 15:17:01 -0400 Subject: [PATCH] Migrate 4 govuk utility components to USWDS equivalents --- app/config.py | 4 ++-- app/templates/views/api/index.html | 2 +- app/templates/views/templates/_template_list.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/config.py b/app/config.py index fa8ade775..51aedfffa 100644 --- a/app/config.py +++ b/app/config.py @@ -17,7 +17,7 @@ class Config(object): ADMIN_BASE_URL = getenv("ADMIN_BASE_URL", "http://localhost:6012") HEADER_COLOUR = ( - "#81878b" # mix(govuk-colour("dark-grey"), govuk-colour("mid-grey")) + "#81878b" # mix of dark-grey and mid-grey ) LOGO_CDN_DOMAIN = ( "static-logos.notifications.service.gov.uk" # TODO use our own CDN @@ -141,7 +141,7 @@ class Test(Development): class Production(Config): - HEADER_COLOUR = "#005EA5" # $govuk-blue + HEADER_COLOUR = "#005EA5" # primary blue HTTP_PROTOCOL = "https" ASSET_DOMAIN = "" # TODO use a CDN ASSET_PATH = "/static/" # TODO use a CDN diff --git a/app/templates/views/api/index.html b/app/templates/views/api/index.html index cf295c0c0..a294827ac 100644 --- a/app/templates/views/api/index.html +++ b/app/templates/views/api/index.html @@ -47,7 +47,7 @@ {% endif %} {% for notification in api_notifications.notifications %}
- +

{{ notification.to }} diff --git a/app/templates/views/templates/_template_list.html b/app/templates/views/templates/_template_list.html index db8255d4a..6fc0baeec 100644 --- a/app/templates/views/templates/_template_list.html +++ b/app/templates/views/templates/_template_list.html @@ -78,7 +78,7 @@ {% endset %} {# create the item config now to include the label content -#} - {# TODO: "attributes": { "aria-describedby": item.id ~ "-hint" } needs to be added but govuk-frontend-jinja doesn't + {# TODO: "attributes": { "aria-describedby": item.id ~ "-hint" } needs to be added but USWDS framework doesn't currently support this -#} {% set checkbox_config = { "html": label_content,