Skip to content

Commit

Permalink
EWPP-3594: Add aria-label attribute for Page header breadcrumb.
Browse files Browse the repository at this point in the history
  • Loading branch information
22Alexandra authored and sergepavle committed Sep 13, 2023
1 parent d6b7690 commit f817a42
Show file tree
Hide file tree
Showing 25 changed files with 80 additions and 1 deletion.
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Текущо"

msgid "Site navigation"
msgstr "Навигация на сайта"

msgid "You are here:"
msgstr "Вие сте тук:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-cs.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Otevírání nabídek"

msgid "Site navigation"
msgstr "Navigace stránek"

msgid "You are here:"
msgstr "Nacházíte se zde:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-da.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Åbning af bud"

msgid "Site navigation"
msgstr "Navigation"

msgid "You are here:"
msgstr "Du er her:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-de.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Öffnung der Angebote"

msgid "Site navigation"
msgstr "Navigationsmenü"

msgid "You are here:"
msgstr "Sie sind hier:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-el.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Αποσφράγιση των προσφορών"

msgid "Site navigation"
msgstr "Πλοήγηση στον ιστότοπο"

msgid "You are here:"
msgstr "Είστε εδώ:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-es.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Apertura de plicas"

msgid "Site navigation"
msgstr "Navegación del sitio"

msgid "You are here:"
msgstr "Usted está aquí:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-et.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Pakkumiste avamine"

msgid "Site navigation"
msgstr "Saidi navigatsioon"

msgid "You are here:"
msgstr "Oled siin:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Tarjousten avaaminen"

msgid "Site navigation"
msgstr "Sivustovalikko"

msgid "You are here:"
msgstr "Olet tässä:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Ouverture des offres"

msgid "Site navigation"
msgstr "Navigation sur le site"

msgid "You are here:"
msgstr "Vous êtes ici:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-ga.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Oscailt tairiscintí"

msgid "Site navigation"
msgstr "Loingseoireacht an tsuímh"

msgid "You are here:"
msgstr "Anseo atá tú:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-hr.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Otvaranje ponuda"

msgid "Site navigation"
msgstr "Navigacija portalom"

msgid "You are here:"
msgstr "Nalazite se ovdje:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-hu.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Az ajánlatok felbontása"

msgid "Site navigation"
msgstr "Honlap-navigáció"

msgid "You are here:"
msgstr "Ön itt van:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-it.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Apertura delle offerte"

msgid "Site navigation"
msgstr "Navigazione nel sito"

msgid "You are here:"
msgstr "Ti trovi qui:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-lt.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Vokų su pasiūlymais atplėšimas"

msgid "Site navigation"
msgstr "Naršymas svetainėje"

msgid "You are here:"
msgstr "Esate čia:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-lv.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Piedāvājumu atvēršana"

msgid "Site navigation"
msgstr "Navigācija lapā"

msgid "You are here:"
msgstr "Jūs esat šeit:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-mt.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Ftuħ ta’ l-offerti"

msgid "Site navigation"
msgstr "Navigazzjoni tas-sit"

msgid "You are here:"
msgstr "Tinsab hawn:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Opening van de inschrijvingen"

msgid "Site navigation"
msgstr "Sitemenu"

msgid "You are here:"
msgstr "U bent hier:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-pl.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Otwarcie ofert"

msgid "Site navigation"
msgstr "Nawigacja na stronie"

msgid "You are here:"
msgstr "Jesteś tutaj:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-pt-pt.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Abertura das propostas"

msgid "Site navigation"
msgstr "Navegação no sítio"

msgid "You are here:"
msgstr "Está aqui:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-ro.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Deschiderea ofertelor"

msgid "Site navigation"
msgstr "Meniu de navigare pe site"

msgid "You are here:"
msgstr "Sunteți aici:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-sk.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Otváranie ponúk"

msgid "Site navigation"
msgstr "Navigačné menu lokality"

msgid "You are here:"
msgstr "Nachádzate sa tu:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-sl.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Odpiranje ponudb"

msgid "Site navigation"
msgstr "Navigacija po spletišču"

msgid "You are here:"
msgstr "Ste tukaj:"
3 changes: 3 additions & 0 deletions modules/oe_theme_helper/translations/oe_theme_helper-sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -638,3 +638,6 @@ msgstr "Öppnande av anbuden"

msgid "Site navigation"
msgstr "Navigeringsmeny"

msgid "You are here:"
msgstr "Du är här:"
8 changes: 7 additions & 1 deletion templates/patterns/page_header/pattern-page-header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
'links' : _breadcrumb_links,
'navigation_text' : '',
'ellipsis_label': '',
'icon_file_path' : ecl_icon_path
'icon_file_path' : ecl_icon_path,
'extra_attributes': [
{
'name': 'aria-label',
'value': "You are here:"|t,
}
]
} %}
{% endif %}

Expand Down
4 changes: 4 additions & 0 deletions tests/src/Kernel/fixtures/patterns/page_header_rendering.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
assertions:
count:
'.ecl-page-header.ecl-page-header--negative': 1
"nav.ecl-breadcrumb.ecl-breadcrumb--negative.ecl-page-header__breadcrumb[aria-label=\"You are here:\"][data-ecl-breadcrumb=\"true\"]": 1
'.ecl-breadcrumb__segment': 7
'.ecl-page-header__background': 0
'.ecl-page-header__meta .ecl-page-header__meta-item': 3
Expand Down Expand Up @@ -86,6 +87,7 @@
assertions:
count:
'.ecl-page-header.ecl-page-header--negative': 1
"nav.ecl-breadcrumb.ecl-breadcrumb--negative.ecl-page-header__breadcrumb[aria-label=\"You are here:\"][data-ecl-breadcrumb=\"true\"]": 1
'.ecl-breadcrumb__segment': 7
'.ecl-page-header__background[src="https://inno-ecl.s3.amazonaws.com/media/examples/example-image8.jpg"]': 1
'.ecl-page-header__meta .ecl-page-header__meta-item': 3
Expand Down Expand Up @@ -168,6 +170,7 @@
count:
'.ecl-page-header': 1
'.ecl-page-header--negative': 0
"nav.ecl-breadcrumb.ecl-page-header__breadcrumb[aria-label=\"You are here:\"][data-ecl-breadcrumb=\"true\"]": 1
'.ecl-breadcrumb__segment': 7
'.ecl-page-header__background': 0
'.ecl-page-header__meta .ecl-page-header__meta-item': 3
Expand Down Expand Up @@ -222,6 +225,7 @@
assertions:
count:
'.ecl-page-header': 1
"nav.ecl-breadcrumb.ecl-page-header__breadcrumb[aria-label=\"You are here:\"][data-ecl-breadcrumb=\"true\"]": 1
'.ecl-breadcrumb__segment': 7
'.ecl-page-header__background[src="https://inno-ecl.s3.amazonaws.com/media/examples/example-image8.jpg"]': 1
'.ecl-page-header__meta .ecl-page-header__meta-item': 3
Expand Down

0 comments on commit f817a42

Please sign in to comment.