diff --git a/client/scss/components/_listing.scss b/client/scss/components/_listing.scss index 5e67d42267..399099e28f 100644 --- a/client/scss/components/_listing.scss +++ b/client/scss/components/_listing.scss @@ -199,7 +199,7 @@ ul.listing { } label span { - @include visuallyhidden(); + @apply w-sr-only; } input { diff --git a/client/scss/core.scss b/client/scss/core.scss index d7e653e308..77853b43f3 100644 --- a/client/scss/core.scss +++ b/client/scss/core.scss @@ -159,7 +159,6 @@ These are classes that provide overrides. // UTILITIES: classes that do one simple thing. @import 'overrides/utilities.focus'; -@import 'overrides/utilities.visuallyhidden'; // Legacy utilities @import 'overrides/utilities.legacy'; diff --git a/client/scss/overrides/_utilities.visuallyhidden.scss b/client/scss/overrides/_utilities.visuallyhidden.scss deleted file mode 100644 index 610f6d356e..0000000000 --- a/client/scss/overrides/_utilities.visuallyhidden.scss +++ /dev/null @@ -1,3 +0,0 @@ -.visuallyhidden { - @include visuallyhidden; -} diff --git a/client/scss/tools/_mixins.general.scss b/client/scss/tools/_mixins.general.scss index 1ff847a15d..7b1c211093 100644 --- a/client/scss/tools/_mixins.general.scss +++ b/client/scss/tools/_mixins.general.scss @@ -57,17 +57,6 @@ } } -@mixin visuallyhidden { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} - @mixin svg-icon($size: 1em, $position: text-top) { width: $size; height: $size; diff --git a/client/src/components/Button/Button.tsx b/client/src/components/Button/Button.tsx index bfc32b2e9f..76378b04f3 100644 --- a/client/src/components/Button/Button.tsx +++ b/client/src/components/Button/Button.tsx @@ -55,7 +55,7 @@ const Button: React.FunctionComponent = ({ }) => { const hasText = React.Children.count(children) > 0; const accessibleElt = accessibleLabel ? ( - {accessibleLabel} + {accessibleLabel} ) : null; return ( diff --git a/client/src/components/Button/__snapshots__/Button.test.js.snap b/client/src/components/Button/__snapshots__/Button.test.js.snap index 0a44992d4a..4692015079 100644 --- a/client/src/components/Button/__snapshots__/Button.test.js.snap +++ b/client/src/components/Button/__snapshots__/Button.test.js.snap @@ -7,7 +7,7 @@ exports[`Button #accessibleLabel 1`] = ` onClick={[Function]} > I am here in the shadows diff --git a/client/src/components/Icon/Icon.tsx b/client/src/components/Icon/Icon.tsx index bc0d83c58f..bf9e87f8dd 100644 --- a/client/src/components/Icon/Icon.tsx +++ b/client/src/components/Icon/Icon.tsx @@ -18,7 +18,7 @@ const Icon: React.FunctionComponent = ({ - {title && {title}} + {title && {title}} ); diff --git a/client/src/components/Icon/__snapshots__/Icon.test.js.snap b/client/src/components/Icon/__snapshots__/Icon.test.js.snap index aa24525791..9796195804 100644 --- a/client/src/components/Icon/__snapshots__/Icon.test.js.snap +++ b/client/src/components/Icon/__snapshots__/Icon.test.js.snap @@ -37,7 +37,7 @@ exports[`Icon #title 1`] = ` /> Test title diff --git a/wagtail/admin/locale/ca/LC_MESSAGES/django.po b/wagtail/admin/locale/ca/LC_MESSAGES/django.po index ba84f4f78c..5ee36b0a15 100644 --- a/wagtail/admin/locale/ca/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/ca/LC_MESSAGES/django.po @@ -814,16 +814,16 @@ msgstr "Resum del lloc" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Pàgina creada a " +"%(total)s Pàgina creada a " "%(site_name)s" msgstr[1] "" -"%(total)s Pàgines creades a " +"%(total)s Pàgines creades a " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/de/LC_MESSAGES/django.po b/wagtail/admin/locale/de/LC_MESSAGES/django.po index 942bf5d370..2f165b19fd 100644 --- a/wagtail/admin/locale/de/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/de/LC_MESSAGES/django.po @@ -881,16 +881,16 @@ msgstr "Seitenzusammenfassung" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Seite erstellt in " +"%(total)s Seite erstellt in " "%(site_name)s" msgstr[1] "" -"%(total)s Seiten erstellt in " +"%(total)s Seiten erstellt in " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/en/LC_MESSAGES/django.po b/wagtail/admin/locale/en/LC_MESSAGES/django.po index b5cd25fef9..266dc4992f 100644 --- a/wagtail/admin/locale/en/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/en/LC_MESSAGES/django.po @@ -1144,10 +1144,10 @@ msgstr "" #: templates/wagtailadmin/home/site_summary_pages.html:6 #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" msgstr[1] "" diff --git a/wagtail/admin/locale/fa/LC_MESSAGES/django.po b/wagtail/admin/locale/fa/LC_MESSAGES/django.po index 45157a1bfb..155aaef75a 100644 --- a/wagtail/admin/locale/fa/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/fa/LC_MESSAGES/django.po @@ -715,16 +715,16 @@ msgstr "خلاصه سایت" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s صفحه در %(site_name)s " +"%(total)s صفحه در %(site_name)s " "ساخته شده اند" msgstr[1] "" -"%(total)s صفحه در %(site_name)s " +"%(total)s صفحه در %(site_name)s " "ساخته شده اند" #, python-format diff --git a/wagtail/admin/locale/fi/LC_MESSAGES/django.po b/wagtail/admin/locale/fi/LC_MESSAGES/django.po index ea12128554..96d8688c2e 100644 --- a/wagtail/admin/locale/fi/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/fi/LC_MESSAGES/django.po @@ -685,16 +685,16 @@ msgstr "Sivuston yhteenveto" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s sivu luotu sivustolle " +"%(total)s sivu luotu sivustolle " "%(site_name)s" msgstr[1] "" -"%(total)s sivua luotu sivustolle " +"%(total)s sivua luotu sivustolle " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/fr/LC_MESSAGES/django.po b/wagtail/admin/locale/fr/LC_MESSAGES/django.po index a3202def2a..2f31540104 100644 --- a/wagtail/admin/locale/fr/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/fr/LC_MESSAGES/django.po @@ -850,19 +850,19 @@ msgstr "Sommaire du site" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Page créée dans " +"%(total)s Page créée dans " "%(site_name)s" msgstr[1] "" -"%(total)s Pages créées dans " +"%(total)s Pages créées dans " "%(site_name)s" msgstr[2] "" -"%(total)s Pages créées dans " +"%(total)s Pages créées dans " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/gl/LC_MESSAGES/django.po b/wagtail/admin/locale/gl/LC_MESSAGES/django.po index d0bafe9bae..661227a1ac 100644 --- a/wagtail/admin/locale/gl/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/gl/LC_MESSAGES/django.po @@ -815,16 +815,16 @@ msgstr "Resumo do sitio" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Páxina creadas en " +"%(total)s Páxina creadas en " "%(site_name)s" msgstr[1] "" -"%(total)s Páxinas creadas en " +"%(total)s Páxinas creadas en " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/hu/LC_MESSAGES/django.po b/wagtail/admin/locale/hu/LC_MESSAGES/django.po index f5478b482a..4332062acf 100644 --- a/wagtail/admin/locale/hu/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/hu/LC_MESSAGES/django.po @@ -816,16 +816,16 @@ msgstr "Oldal összegzés" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s oldal létrehozva itt: " +"%(total)s oldal létrehozva itt: " "%(site_name)s" msgstr[1] "" -"%(total)s oldal létrehozva itt: " +"%(total)s oldal létrehozva itt: " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/is_IS/LC_MESSAGES/django.po b/wagtail/admin/locale/is_IS/LC_MESSAGES/django.po index 2fd2648328..0272c1fb5f 100644 --- a/wagtail/admin/locale/is_IS/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/is_IS/LC_MESSAGES/django.po @@ -814,13 +814,13 @@ msgstr "Upplýsingar um vef" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Síða búin til í " +"%(total)s Síða búin til í " "%(site_name)s" msgstr[1] "%(total)s Síður búnar til í %(site_name)s" diff --git a/wagtail/admin/locale/it/LC_MESSAGES/django.po b/wagtail/admin/locale/it/LC_MESSAGES/django.po index 994b2fe2ac..0ed2a067e4 100644 --- a/wagtail/admin/locale/it/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/it/LC_MESSAGES/django.po @@ -727,19 +727,19 @@ msgstr "Riepilogo del sito" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s pagina creata in " +"%(total)s pagina creata in " "%(site_name)s" msgstr[1] "" -"%(total)s pagine create in " +"%(total)s pagine create in " "%(site_name)s" msgstr[2] "" -"%(total)s pagine create in " +"%(total)s pagine create in " "%(site_name)s" msgid "Read the release notes." diff --git a/wagtail/admin/locale/ko/LC_MESSAGES/django.po b/wagtail/admin/locale/ko/LC_MESSAGES/django.po index 31c9ee82ba..5e6b434a3d 100644 --- a/wagtail/admin/locale/ko/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/ko/LC_MESSAGES/django.po @@ -685,13 +685,13 @@ msgstr "사이트 요약" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s페이지는 %(site_name)s%(total)s페이지는 %(site_name)s안에 생성되었습니다." msgid "Task started" diff --git a/wagtail/admin/locale/lt/LC_MESSAGES/django.po b/wagtail/admin/locale/lt/LC_MESSAGES/django.po index 994a1d9e5a..b178db4aec 100644 --- a/wagtail/admin/locale/lt/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/lt/LC_MESSAGES/django.po @@ -529,22 +529,22 @@ msgstr "Tinklalapio suvestinė" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Puslapis , sukurtas " +"%(total)s Puslapis , sukurtas " "%(site_name)s tinklalapyje" msgstr[1] "" -"%(total)s Puslapiai , sukurti " +"%(total)s Puslapiai , sukurti " "%(site_name)s tinklalapyje" msgstr[2] "" -"%(total)s Puslapis , sukurtas " +"%(total)s Puslapis , sukurtas " "%(site_name)s tinklalapyje" msgstr[3] "" -"%(total)s Puslapių , sukurtų " +"%(total)s Puslapių , sukurtų " "%(site_name)s tinklalapyje" msgid "Task started" diff --git a/wagtail/admin/locale/nb/LC_MESSAGES/django.po b/wagtail/admin/locale/nb/LC_MESSAGES/django.po index 9f7d968bf6..f37f92b963 100644 --- a/wagtail/admin/locale/nb/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/nb/LC_MESSAGES/django.po @@ -801,16 +801,16 @@ msgstr "Oppsummering for nettstedet" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Side opprettet i " +"%(total)s Side opprettet i " "%(site_name)s" msgstr[1] "" -"%(total)s Sider opprettet i " +"%(total)s Sider opprettet i " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/nl/LC_MESSAGES/django.po b/wagtail/admin/locale/nl/LC_MESSAGES/django.po index 4ca1cc90c1..9d2a224982 100644 --- a/wagtail/admin/locale/nl/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/nl/LC_MESSAGES/django.po @@ -841,16 +841,16 @@ msgstr "Site samenvatting" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s pagina aangemaakt in " +"%(total)s pagina aangemaakt in " "%(site_name)s" msgstr[1] "" -"%(total)s pagina's aangemaakt in " +"%(total)s pagina's aangemaakt in " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/pl/LC_MESSAGES/django.po b/wagtail/admin/locale/pl/LC_MESSAGES/django.po index ad3a379aad..22a57cd777 100644 --- a/wagtail/admin/locale/pl/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/pl/LC_MESSAGES/django.po @@ -838,22 +838,22 @@ msgstr "Streszczenie strony" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s strona utworzona w " +"%(total)s strona utworzona w " "%(site_name)s" msgstr[1] "" -"%(total)s stron utworzonych w " +"%(total)s stron utworzonych w " "%(site_name)s" msgstr[2] "" -"%(total)s stron utworzonych w " +"%(total)s stron utworzonych w " "%(site_name)s" msgstr[3] "" -"%(total)s stron utworzonych w " +"%(total)s stron utworzonych w " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po b/wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po index 9bc3b1bbd8..0b17667a4a 100644 --- a/wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/pt_PT/LC_MESSAGES/django.po @@ -704,19 +704,19 @@ msgstr "Resumo do site" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Imagem criada em " +"%(total)s Imagem criada em " "%(site_name)s" msgstr[1] "" -"%(total)s Imagens criadas em " +"%(total)s Imagens criadas em " "%(site_name)s" msgstr[2] "" -"%(total)s Imagens criadas em " +"%(total)s Imagens criadas em " "%(site_name)s" msgid "Task started" diff --git a/wagtail/admin/locale/ro/LC_MESSAGES/django.po b/wagtail/admin/locale/ro/LC_MESSAGES/django.po index 79981834ad..9443c38c8f 100644 --- a/wagtail/admin/locale/ro/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/ro/LC_MESSAGES/django.po @@ -822,19 +822,19 @@ msgstr "Rezumat sait" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Pagină creată în " +"%(total)s Pagină creată în " "%(site_name)s" msgstr[1] "" -"%(total)s Pagini create în " +"%(total)s Pagini create în " "%(site_name)s" msgstr[2] "" -"%(total)s Pagini create în " +"%(total)s Pagini create în " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/ru/LC_MESSAGES/django.po b/wagtail/admin/locale/ru/LC_MESSAGES/django.po index 266053017f..5ca305ae6b 100644 --- a/wagtail/admin/locale/ru/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/ru/LC_MESSAGES/django.po @@ -869,22 +869,22 @@ msgstr "Общая информация" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)sСтраница создана в " +"%(total)sСтраница создана в " "%(site_name)s" msgstr[1] "" -"%(total)sстраниц создано в " +"%(total)sстраниц создано в " "%(site_name)s" msgstr[2] "" -"%(total)sСтраниц создано в " +"%(total)sСтраниц создано в " "%(site_name)s" msgstr[3] "" -"%(total)s Страниц создано в " +"%(total)s Страниц создано в " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/sl/LC_MESSAGES/django.po b/wagtail/admin/locale/sl/LC_MESSAGES/django.po index 421fde68e4..eb9a66c59b 100644 --- a/wagtail/admin/locale/sl/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/sl/LC_MESSAGES/django.po @@ -794,22 +794,22 @@ msgstr "Povzetek spletnega mesta" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Stran ustvarjena v " +"%(total)s Stran ustvarjena v " "%(site_name)s" msgstr[1] "" -"%(total)s Strani ustvarjeni v " +"%(total)s Strani ustvarjeni v " "%(site_name)s" msgstr[2] "" -"%(total)s Strani ustvarjenih v " +"%(total)s Strani ustvarjenih v " "%(site_name)s" msgstr[3] "" -"%(total)s Strani ustvarjenih v " +"%(total)s Strani ustvarjenih v " "%(site_name)s" #, python-format diff --git a/wagtail/admin/locale/sv/LC_MESSAGES/django.po b/wagtail/admin/locale/sv/LC_MESSAGES/django.po index 6323edb437..424cdbc723 100644 --- a/wagtail/admin/locale/sv/LC_MESSAGES/django.po +++ b/wagtail/admin/locale/sv/LC_MESSAGES/django.po @@ -802,16 +802,16 @@ msgstr "Sajtsammanställning" #, python-format msgid "" -"%(total)s Page created in " +"%(total)s Page created in " "%(site_name)s" msgid_plural "" -"%(total)s Pages created in " +"%(total)s Pages created in " "%(site_name)s" msgstr[0] "" -"%(total)s Sida skapades i " +"%(total)s Sida skapades i " "%(site_name)s" msgstr[1] "" -"%(total)s Sidor skapades i " +"%(total)s Sidor skapades i " "%(site_name)s" #, python-format diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html index eab91d9d32..75953b5ee9 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html @@ -1,6 +1,6 @@ {% load i18n wagtailadmin_tags %}