Skip to content

Commit 450b53a

Browse files
committed
Fix: Add hidden heading in _published_dates
DAC audit fix: added hidden headings to metadata sections in _publishing_dates partial to improve accessibility, ensuring screen readers properly identify and announce these sections. Affected templates include speech, case study, fatality notice, news article, statistical data set and specialist document.
1 parent b2069b5 commit 450b53a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+67
-0
lines changed

app/views/components/_published_dates.html.erb

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
classes << shared_helper.get_margin_bottom if local_assigns[:margin_bottom]
1212
%>
1313
<% if published || last_updated %>
14+
<h2 class="govuk-visually-hidden"><%= t('components.published_dates.hidden_heading') %></h2>
1415
<div class="<%= classes.join(' ') %>" <% if history.any? %>id="full-publication-update-history" data-module="gem-toggle"<% end %> lang="en">
1516
<% if published %>
1617
<%= t('components.published_dates.published', date: published) %>

config/locales/ar.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ar:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: إخفاء كافة التحديثات
4142
last_updated: تاريخ آخر تحديث %{date}
4243
published: تاريخ النشر %{date}

config/locales/az.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ az:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: bütün yenilmələri gizlət
4142
last_updated: 'Son yenilənmə: %{date}'
4243
published: 'Dərc edilib: %{date}'

config/locales/be.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ be:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: схаваць усе абнаўленні
4142
last_updated: Апошняе абнаўленне %{date}
4243
published: Апублікавана %{date}

config/locales/bg.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ bg:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: скриване на всички актуализации
4142
last_updated: Последна актуализация %{date}
4243
published: Публикувано на %{date}

config/locales/bn.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ bn:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: সকল আপডেট লুকান
4142
last_updated: সর্বশেষ হালনাগাদ হয়েছে %{date}
4243
published: প্রকাশিত হওয়ার তারিখ %{date}

config/locales/cs.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ cs:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: skrýt všechny aktualizace
4142
last_updated: Poslední aktualizace %{date}
4243
published: Zveřejněno %{date}

config/locales/cy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ cy:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: cuddio pob diweddariad
4142
last_updated: Diweddarwyd ddiwethaf ar %{date}
4243
published: Cyhoeddwyd ar %{date}

config/locales/da.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ da:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: skjule alle opdateringer
4142
last_updated: Senest opdateret %{date}
4243
published: Udgivet %{date}

config/locales/de.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ de:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: alle Aktualisierungen ausblenden
4142
last_updated: Letzte Aktualisierung am %{date}
4243
published: Veröffentlicht am %{date}

config/locales/dr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ dr:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: مخفی کردن تمام آپدیت ها
4142
last_updated: آخرین آپدیت%{date}
4243
published: منتشر شده%{date}

config/locales/el.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ el:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: απόκρυψη όλων των ενημερώσεων
4142
last_updated: Τελευταία ενημέρωση %{date}
4243
published: Δημοσιεύτηκε %{date}

config/locales/en.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ en:
3737
print_link:
3838
text: Print this page
3939
published_dates:
40+
hidden_heading: Updates to this page
4041
hide_all_updates: hide all updates
4142
last_updated: Last updated %{date}
4243
published: Published %{date}

config/locales/es-419.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ es-419:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ocultar todas las novedades
4142
last_updated: Última actualización %{date}
4243
published: Publicado %{date}

config/locales/es.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ es:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ocultar todas las actualizaciones
4142
last_updated: Última actualización de %{date}
4243
published: Publicado %{date}

config/locales/et.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ et:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: peida kõik värskendused
4142
last_updated: Viimati värskendatud %{date}
4243
published: Avaldatud %{date}

config/locales/fa.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ fa:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: مخفی کردن تمام بروزرسانی‌ها
4142
last_updated: آخرین بروزرسانی %{date}
4243
published: منشتر شده %{date}

config/locales/fi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ fi:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: piilota kaikki päivitykset
4142
last_updated: Viimeksi päivitetty %{date}
4243
published: Julkaistu %{date}

config/locales/fr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ fr:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: masquer toutes les mises à jour
4142
last_updated: Dernière mise à jour le %{date}
4243
published: Publié le %{date}

config/locales/gd.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ gd:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: gach nuashonrú a cheilt
4142
last_updated: Nuashonrú deireanach %{date}
4243
published: Arna chur suas ar %{date}

config/locales/gu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ gu:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: બધા અપડેટ્સને હાઈડ કરો
4142
last_updated: છેલ્લો અપડેટ %{date}
4243
published: પ્રકાશિત થયો %{date}

config/locales/he.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ he:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: להסתיר כל עדכונים
4142
last_updated: עדכון אחרון %{date}
4243
published: פורסם %{date}

config/locales/hi.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ hi:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: सारे अपडेट छिपाएं
4142
last_updated: पिछली बार अपडेट किया गया %{date}
4243
published: प्रकाशित %{date}

config/locales/hr.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ hr:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: sakriti sva ažuriranja
4142
last_updated: Zadnje ažurirano %{date}
4243
published: Objavljeno %{date}

config/locales/hu.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ hu:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: minden frissítés elrejtése
4142
last_updated: 'Utolsó frissítés: %{date}'
4243
published: 'közzététel dátuma: %{date}'

config/locales/hy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ hy:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: թաքցնել բոլոր թարմացումները
4142
last_updated: Վերջին թարմացումը՝ %{date}
4243
published: Հրապարակվել է՝ %{date}

config/locales/id.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ id:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: sembunyikan semua pembaruan
4142
last_updated: Terakhir diperbarui %{date}
4243
published: Diterbitkan %{date}

config/locales/is.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ is:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: fela allar uppfærslur
4142
last_updated: Síðast uppfært %{date}
4243
published: Birt %{date}

config/locales/it.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ it:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: nascondi tutti gli aggiornamenti
4142
last_updated: Ultimo aggiornamento %{date}
4243
published: Pubblicato %{date}

config/locales/ja.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ja:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: すべての更新を非表示
4142
last_updated: 最終更新日:%{date}
4243
published: 公開日:%{date}

config/locales/ka.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ka:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ყველა ცვლილების დაფარვა
4142
last_updated: ბოლოს განახლდა %{date}
4243
published: გამოქვეყნდა %{date}

config/locales/kk.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ kk:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: барлық жаңартуларды жасыру
4142
last_updated: Соңғы рет %{date} жаңартылды
4243
published: "%{date} күні жарияланды"

config/locales/ko.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ko:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: 모든 업데이트 숨기기
4142
last_updated: 최근 업데이트일 %{date}
4243
published: 발행일 %{date}

config/locales/lt.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ lt:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: slėpti visą naują informacij
4142
last_updated: Paskutinį kartą naujinta %{date}
4243
published: Publikuota %{date}

config/locales/lv.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ lv:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: paslēpt visus atjauninājumus
4142
last_updated: Pēdējoreiz atjaunināts %{date}
4243
published: Publicēts %{date}

config/locales/ms.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ms:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: sorok semua kemas kini
4142
last_updated: Kali terakhir dikemas kini %{date}
4243
published: Diterbitkan %{date}

config/locales/mt.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ mt:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: aħbi l-aġġornamenti kollha
4142
last_updated: L-aħħar aġġornament %{date}
4243
published: Ippubblikat %{date}

config/locales/ne.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ne:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: सबै अद्यावधिक लुकाउनुहोस्
4142
last_updated: पछिल्लो अद्यावधिक %{date}
4243
published: प्रकाशित %{date}

config/locales/nl.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ nl:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: verberg alle updates
4142
last_updated: Laatst bijgewerkt %{date}
4243
published: Gepubliceerd %{date}

config/locales/no.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: skjul alle oppdateringer
4142
last_updated: Sist oppdatert %{date}
4243
published: Publisert %{date}

config/locales/pa-pk.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pa-pk:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: سارے تازہ ترین حالات نوں لُکا لوؤ
4142
last_updated: اخری وار تازہ ترین بنایا {date} %
4243
published: شائع ہویا {date} %

config/locales/pa.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pa:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ਸਾਰੇ ਅਪਡੇਟਾਂ ਨੂੰ ਲੁਕਾਓ
4142
last_updated: ਪਿਛਲੀ ਵਾਰ ਅਪਡੇਟ ਕੀਤਾ ਗਿਆ %{date}
4243
published: ਪ੍ਰਕਾਸ਼ਿਤ %{date}

config/locales/pl.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pl:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ukryj wszystkie aktualizacje
4142
last_updated: Ostatnio zaktualizowano %{date}
4243
published: Opublikowano %{date}

config/locales/ps.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ps:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ټول تازه معلومات پټ کړئ
4142
last_updated: وروستی تازه شوی%{date}
4243
published: خپور شوی%{date}

config/locales/pt.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pt:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ocultar todas as atualizações
4142
last_updated: Última atualização a %{date}
4243
published: Publicado a %{date}

config/locales/ro.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ro:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: ascundeți toate actualizările
4142
last_updated: Ultima actualizare %{date}
4243
published: Publicat pe %{date}

config/locales/ru.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ ru:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: Скрыть всю последнюю информацию
4142
last_updated: Последние изменения %{date}
4243
published: Опубликовано %{date}

config/locales/si.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ si:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: සියලු යාවත්කාලීන සඟවන්න
4142
last_updated: අවසන් වරට යාවත්කාලීන කළේ %{date}
4243
published: පළ කළේ %{date}

config/locales/sk.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ sk:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: skryť všetky aktualizácie
4142
last_updated: Posledná aktualizácia %{date}
4243
published: Zverejnené %{date}

config/locales/sl.yml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ sl:
3737
print_link:
3838
text:
3939
published_dates:
40+
hidden_heading:
4041
hide_all_updates: Skrij vse posodobitve
4142
last_updated: Zadnjič posodobljeno %{date}
4243
published: Objavljeno %{date}

0 commit comments

Comments
 (0)