mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Replace all visually-hidden classes
These have been replaced: https://design-system.service.gov.uk/get-started/updating-your-code/#helper-class-names
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
) %}
|
||||
<form method="post" enctype="multipart/form-data" {% if action %}action="{{ action }}"{% endif %} class="{% if field.errors and show_errors %}form-group-error{% endif %}" data-module="file-upload">
|
||||
<label class="file-upload-label" for="{{ field.name }}">
|
||||
<span class="visually-hidden">{{ field.label.text }}</span>
|
||||
<span class="govuk-visually-hidden">{{ field.label.text }}</span>
|
||||
{% if hint %}
|
||||
<span class="form-hint">
|
||||
{{ hint }}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
{% for index in range(0, field.entries|length) %}
|
||||
<div class="list-entry">
|
||||
<label for="input-{{ field.name }}-{{ index }}" class="text-box-number-label">
|
||||
<span class="visuallyhidden">{{ item_name }} number </span>{{ index + 1 }}.
|
||||
<span class="govuk-visually-hidden">{{ item_name }} number </span>{{ index + 1 }}.
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
{% endif %}
|
||||
<fieldset id="{{ field.id }}" {% if inline %}class="inline"{% endif %}>
|
||||
<legend class="{{ 'form-label' if not hide_legend else '' }}{% if legend_style != 'text' %} {{ legend_style }}{% endif %}">
|
||||
{% if hide_legend %}<span class="visually-hidden">{% endif %}
|
||||
{% if hide_legend %}<span class="govuk-visually-hidden">{% endif %}
|
||||
{{ field.label.text|safe }}
|
||||
{% if hide_legend %}</span>{% endif %}
|
||||
{% if hint %}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{% macro mapping_table(caption='', field_headings=[], field_headings_visible=True, caption_visible=True, equal_length=False) -%}
|
||||
<table class="table table-font-xsmall">
|
||||
<caption class="heading-medium table-heading{{ ' visuallyhidden' if not caption_visible}}">
|
||||
<caption class="heading-medium table-heading{{ ' govuk-visually-hidden' if not caption_visible}}">
|
||||
{{ caption }}
|
||||
</caption>
|
||||
<thead class="table-field-headings{% if field_headings_visible %}-visible{% endif %}">
|
||||
@@ -12,7 +12,7 @@
|
||||
{% if field_headings_visible %}
|
||||
{{ field_heading }}
|
||||
{% else %}
|
||||
<span class="visuallyhidden">{{ field_heading }}</span>
|
||||
<span class="govuk-visually-hidden">{{ field_heading }}</span>
|
||||
{% endif %}
|
||||
</th>
|
||||
{% endfor %}
|
||||
@@ -138,7 +138,7 @@
|
||||
{%- endmacro %}
|
||||
|
||||
{% macro hidden_field_heading(text) %}
|
||||
<span class="visuallyhidden">{{ text }}</span>
|
||||
<span class="govuk-visually-hidden">{{ text }}</span>
|
||||
{%- endmacro %}
|
||||
|
||||
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
<li>
|
||||
{% if yes %}
|
||||
<span class="tick-cross-tick">
|
||||
<span class="visually-hidden">{{ truthy_hint }}</span>
|
||||
<span class="govuk-visually-hidden">{{ truthy_hint }}</span>
|
||||
{{ label}}
|
||||
</span>
|
||||
{% else %}
|
||||
<span class="tick-cross-cross">
|
||||
<span class="visually-hidden">{{ falsey_hint }}</span>
|
||||
<span class="govuk-visually-hidden">{{ falsey_hint }}</span>
|
||||
{{ label}}
|
||||
</span>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user