Test passed, good time to commit

This commit is contained in:
Jonathan Bobel
2023-06-16 14:55:24 -04:00
parent 618ac6df8d
commit f266084ddb
50 changed files with 110 additions and 104 deletions

View File

@@ -507,7 +507,7 @@ class NestedFieldMixin:
"fieldset": {
"legend": {
"text": label,
"classes": "govuk-visually-hidden"
"classes": "usa-sr-only"
}
},
"formGroup": {
@@ -1376,7 +1376,7 @@ class SupportRedirect(StripWhitespaceForm):
('public', 'Im a member of the public with a question for the government'),
],
param_extensions={
"fieldset": {"legend": {"classes": "govuk-visually-hidden"}}
"fieldset": {"legend": {"classes": "usa-sr-only"}}
}
)
@@ -1575,7 +1575,7 @@ class AdminSetEmailBrandingForm(StripWhitespaceForm):
branding_style = GovukRadiosFieldWithNoneOption(
'Branding style',
param_extensions={'fieldset': {'legend': {'classes': 'govuk-visually-hidden'}}},
param_extensions={'fieldset': {'legend': {'classes': 'usa-sr-only'}}},
thing='a branding style',
)
@@ -2033,7 +2033,7 @@ class TemplateAndFoldersSelectionForm(Form):
param_extensions={
"fieldset": {
"legend": {
"classes": "govuk-visually-hidden"
"classes": "usa-sr-only"
}
}
}

View File

@@ -312,7 +312,7 @@ def _get_job_counts(job):
) for label, query_param, count in [
[
Markup(
f'''total<span class="govuk-visually-hidden">
f'''total<span class="usa-sr-only">
{"text message" if job_type == "sms" else job_type}s</span>'''
),
'',
@@ -320,7 +320,7 @@ def _get_job_counts(job):
],
[
Markup(
f'''sending<span class="govuk-visually-hidden">
f'''sending<span class="usa-sr-only">
{message_count_noun(job.notifications_sending, job_type)}</span>'''
),
'sending',
@@ -328,7 +328,7 @@ def _get_job_counts(job):
],
[
Markup(
f'''delivered<span class="govuk-visually-hidden">
f'''delivered<span class="usa-sr-only">
{message_count_noun(job.notifications_delivered, job_type)}</span>'''
),
'delivered',
@@ -336,7 +336,7 @@ def _get_job_counts(job):
],
[
Markup(
f'''failed<span class="govuk-visually-hidden">
f'''failed<span class="usa-sr-only">
{message_count_noun(job.notifications_failed, job_type)}</span>'''
),
'failed',
@@ -388,7 +388,7 @@ def get_job_partials(job):
def add_preview_of_content_to_notifications(notifications):
for notification in notifications:
yield(dict(
yield (dict(
preview_of_content=get_preview_of_content(notification),
**notification
))