mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 15:38:25 -04:00
Migrate 4 govuk utility components to USWDS equivalents
This commit is contained in:
@@ -17,7 +17,7 @@ class Config(object):
|
|||||||
|
|
||||||
ADMIN_BASE_URL = getenv("ADMIN_BASE_URL", "http://localhost:6012")
|
ADMIN_BASE_URL = getenv("ADMIN_BASE_URL", "http://localhost:6012")
|
||||||
HEADER_COLOUR = (
|
HEADER_COLOUR = (
|
||||||
"#81878b" # mix(govuk-colour("dark-grey"), govuk-colour("mid-grey"))
|
"#81878b" # mix of dark-grey and mid-grey
|
||||||
)
|
)
|
||||||
LOGO_CDN_DOMAIN = (
|
LOGO_CDN_DOMAIN = (
|
||||||
"static-logos.notifications.service.gov.uk" # TODO use our own CDN
|
"static-logos.notifications.service.gov.uk" # TODO use our own CDN
|
||||||
@@ -141,7 +141,7 @@ class Test(Development):
|
|||||||
|
|
||||||
|
|
||||||
class Production(Config):
|
class Production(Config):
|
||||||
HEADER_COLOUR = "#005EA5" # $govuk-blue
|
HEADER_COLOUR = "#005EA5" # primary blue
|
||||||
HTTP_PROTOCOL = "https"
|
HTTP_PROTOCOL = "https"
|
||||||
ASSET_DOMAIN = "" # TODO use a CDN
|
ASSET_DOMAIN = "" # TODO use a CDN
|
||||||
ASSET_PATH = "/static/" # TODO use a CDN
|
ASSET_PATH = "/static/" # TODO use a CDN
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for notification in api_notifications.notifications %}
|
{% for notification in api_notifications.notifications %}
|
||||||
<details class="api-notifications-item govuk-details" data-module="govuk-details">
|
<details class="api-notifications-item govuk-details" data-module="govuk-details">
|
||||||
<summary class="govuk-details__summary govuk-clearfix api-notifications-item__heading">
|
<summary class="govuk-details__summary api-notifications-item__heading">
|
||||||
<h3>
|
<h3>
|
||||||
<span class="govuk-details__summary-text">
|
<span class="govuk-details__summary-text">
|
||||||
{{ notification.to }}
|
{{ notification.to }}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@
|
|||||||
{% endset %}
|
{% endset %}
|
||||||
|
|
||||||
{# create the item config now to include the label content -#}
|
{# 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 -#}
|
currently support this -#}
|
||||||
{% set checkbox_config = {
|
{% set checkbox_config = {
|
||||||
"html": label_content,
|
"html": label_content,
|
||||||
|
|||||||
Reference in New Issue
Block a user