Skip to content

Commit

Permalink
fix: added aria label to icons across ioComune (#557)
Browse files Browse the repository at this point in the history
* fix: added aria label to icons across ioComune

* fix: added alt text to all icons

* fix: changed alt text to title and added arialabelled-by and ids

* chore: removed unused code

* fix: added translations

* fix: used previously created translation messages

* fix: added translations

* fix: title attributes in all icons

* fix: removed aria-labelledby from FontAwesomeIcon

* fix: added aria-labelledby to FontAwesomeIcon

---------

Co-authored-by: Piero Nicolli <[email protected]>
  • Loading branch information
sabrina-bongiovanni and pnicolli authored Mar 27, 2024
1 parent 2e5d7f9 commit a33c93b
Show file tree
Hide file tree
Showing 37 changed files with 622 additions and 39 deletions.
56 changes: 56 additions & 0 deletions locales/de/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,12 @@ msgstr ""
msgid "argoment"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact
# defaultMessage: Icona {type}
msgid "argument_icon"
msgstr ""

#: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar
# defaultMessage: Argomenti in evidenza
msgid "arguments_in_evidence_block"
Expand Down Expand Up @@ -1157,6 +1163,11 @@ msgstr ""
msgid "casi_particolari"
msgstr ""

#: components/ItaliaTheme/Cards/CardCategory
# defaultMessage: Icona categoria
msgid "category_icon"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Link al canale
msgid "channel_link"
Expand Down Expand Up @@ -1215,6 +1226,11 @@ msgstr ""
msgid "close-menu"
msgstr ""

#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
# defaultMessage: Chiudi l'accordion
msgid "closeAccordion"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
# defaultMessage: Chiudi cerca
msgid "closeSearch"
Expand Down Expand Up @@ -1756,6 +1772,11 @@ msgstr ""
msgid "downloadPlayVideo"
msgstr ""

#: components/SelectInput/SelectInput
# defaultMessage: Apri il menu
msgid "dropdown_indicator"
msgstr ""

#: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm
# defaultMessage: Additional classes
msgid "dropdownmenu-additionalClasses"
Expand Down Expand Up @@ -2229,6 +2250,26 @@ msgstr ""
msgid "iconDescription"
msgstr ""

#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon
# defaultMessage: Icona per l'argomento {topic_title}
msgid "icon_title"
msgstr ""

#: components/ItaliaTheme/View/Commons/LocationItem
# defaultMessage: Icona luoghi
msgid "icona_luoghi"
msgstr ""

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Icona telefono
msgid "icona_telefono"
msgstr ""

#: components/ItaliaTheme/View/Commons/OfficeCard
# defaultMessage: Icona ufficio
msgid "icona_ufficio"
msgstr ""

#: components/ItaliaTheme/Blocks/IconBlocks/Sidebar
# defaultMessage: Blocco con icone
msgid "iconss_blocks"
Expand Down Expand Up @@ -2611,6 +2652,16 @@ msgstr ""
msgid "numero_progressivo_cs"
msgstr ""

#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
# defaultMessage: Apri l'accordion
msgid "openAccordion"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Apri il link
msgid "openLink"
msgstr ""

#: components/ItaliaTheme/Blocks/CTABlock/Block
# defaultMessage: Apri link in una nuova scheda
msgid "openLinkInNewTab"
Expand Down Expand Up @@ -3940,6 +3991,11 @@ msgstr ""
msgid "ufficio_responsabile"
msgstr ""

#: components/ItaliaTheme/View/Commons/HelpBox
# defaultMessage: Icona ulteriori informazioni
msgid "ulteriori_info"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
Expand Down
56 changes: 56 additions & 0 deletions locales/en/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,12 @@ msgstr "Responsible area"
msgid "argoment"
msgstr "Topic"

#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact
# defaultMessage: Icona {type}
msgid "argument_icon"
msgstr "{type} Icon"

#: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar
# defaultMessage: Argomenti in evidenza
msgid "arguments_in_evidence_block"
Expand Down Expand Up @@ -1142,6 +1148,11 @@ msgstr "Downloadable formats"
msgid "casi_particolari"
msgstr "Special cases"

#: components/ItaliaTheme/Cards/CardCategory
# defaultMessage: Icona categoria
msgid "category_icon"
msgstr "Category icon"

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Link al canale
msgid "channel_link"
Expand Down Expand Up @@ -1200,6 +1211,11 @@ msgstr ""
msgid "close-menu"
msgstr ""

#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
# defaultMessage: Chiudi l'accordion
msgid "closeAccordion"
msgstr "Close the accordion"

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
# defaultMessage: Chiudi cerca
msgid "closeSearch"
Expand Down Expand Up @@ -1741,6 +1757,11 @@ msgstr "Download"
msgid "downloadPlayVideo"
msgstr ""

#: components/SelectInput/SelectInput
# defaultMessage: Apri il menu
msgid "dropdown_indicator"
msgstr "Open the menu"

#: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm
# defaultMessage: Additional classes
msgid "dropdownmenu-additionalClasses"
Expand Down Expand Up @@ -2214,6 +2235,26 @@ msgstr ""
msgid "iconDescription"
msgstr ""

#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon
# defaultMessage: Icona per l'argomento {topic_title}
msgid "icon_title"
msgstr "Icon for {topic_title} topic"

#: components/ItaliaTheme/View/Commons/LocationItem
# defaultMessage: Icona luoghi
msgid "icona_luoghi"
msgstr "Venues icon"

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Icona telefono
msgid "icona_telefono"
msgstr "Phone icon"

#: components/ItaliaTheme/View/Commons/OfficeCard
# defaultMessage: Icona ufficio
msgid "icona_ufficio"
msgstr "Office icon"

#: components/ItaliaTheme/Blocks/IconBlocks/Sidebar
# defaultMessage: Blocco con icone
msgid "iconss_blocks"
Expand Down Expand Up @@ -2596,6 +2637,16 @@ msgstr ""
msgid "numero_progressivo_cs"
msgstr "Press release number"

#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
# defaultMessage: Apri l'accordion
msgid "openAccordion"
msgstr "Open the accordion"

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Apri il link
msgid "openLink"
msgstr "Open link"

#: components/ItaliaTheme/Blocks/CTABlock/Block
# defaultMessage: Apri link in una nuova scheda
msgid "openLinkInNewTab"
Expand Down Expand Up @@ -3925,6 +3976,11 @@ msgstr ""
msgid "ufficio_responsabile"
msgstr "Responsible office"

#: components/ItaliaTheme/View/Commons/HelpBox
# defaultMessage: Icona ulteriori informazioni
msgid "ulteriori_info"
msgstr "Further information icon"

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
Expand Down
56 changes: 56 additions & 0 deletions locales/es/LC_MESSAGES/volto.po
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,12 @@ msgstr "Área responsable"
msgid "argoment"
msgstr "Tema"

#: components/ItaliaTheme/Blocks/Listing/RibbonCardTemplate
#: components/ItaliaTheme/Blocks/Listing/SimpleCard/SimpleCardTemplateCompact
# defaultMessage: Icona {type}
msgid "argument_icon"
msgstr ""

#: components/ItaliaTheme/Blocks/ArgumentsInEvidence/Sidebar
# defaultMessage: Argomenti in evidenza
msgid "arguments_in_evidence_block"
Expand Down Expand Up @@ -1151,6 +1157,11 @@ msgstr "Formatos descargables"
msgid "casi_particolari"
msgstr "Casos especiales"

#: components/ItaliaTheme/Cards/CardCategory
# defaultMessage: Icona categoria
msgid "category_icon"
msgstr ""

#: components/ItaliaTheme/Blocks/VideoGallery/Sidebar
# defaultMessage: Link al canale
msgid "channel_link"
Expand Down Expand Up @@ -1209,6 +1220,11 @@ msgstr ""
msgid "close-menu"
msgstr ""

#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
# defaultMessage: Chiudi l'accordion
msgid "closeAccordion"
msgstr ""

#: components/ItaliaTheme/Header/HeaderSearch/SearchModal
# defaultMessage: Chiudi cerca
msgid "closeSearch"
Expand Down Expand Up @@ -1750,6 +1766,11 @@ msgstr "Descargar"
msgid "downloadPlayVideo"
msgstr ""

#: components/SelectInput/SelectInput
# defaultMessage: Apri il menu
msgid "dropdown_indicator"
msgstr ""

#: components/ItaliaTheme/manage/Widgets/MenuConfigurationForm
# defaultMessage: Additional classes
msgid "dropdownmenu-additionalClasses"
Expand Down Expand Up @@ -2223,6 +2244,26 @@ msgstr "Icono"
msgid "iconDescription"
msgstr "Puede seleccionar un icono de los propuestos en el menú desplegable o puede escribir/pegar el nombre de un icono 'fontawesome 5' en el campo de texto"

#: components/ItaliaTheme/View/Commons/Argument/ArgumentIcon
# defaultMessage: Icona per l'argomento {topic_title}
msgid "icon_title"
msgstr ""

#: components/ItaliaTheme/View/Commons/LocationItem
# defaultMessage: Icona luoghi
msgid "icona_luoghi"
msgstr ""

#: components/ItaliaTheme/View/EventoView/EventoContattiOrganizzatoreEsterno
# defaultMessage: Icona telefono
msgid "icona_telefono"
msgstr ""

#: components/ItaliaTheme/View/Commons/OfficeCard
# defaultMessage: Icona ufficio
msgid "icona_ufficio"
msgstr ""

#: components/ItaliaTheme/Blocks/IconBlocks/Sidebar
# defaultMessage: Blocco con icone
msgid "iconss_blocks"
Expand Down Expand Up @@ -2605,6 +2646,16 @@ msgstr "Bloque de números"
msgid "numero_progressivo_cs"
msgstr "Número de comunicado de prensa"

#: components/ItaliaTheme/Blocks/Accordion/Block/ViewBlock
# defaultMessage: Apri l'accordion
msgid "openAccordion"
msgstr ""

#: components/ItaliaTheme/Blocks/Listing/SliderTemplate
# defaultMessage: Apri il link
msgid "openLink"
msgstr ""

#: components/ItaliaTheme/Blocks/CTABlock/Block
# defaultMessage: Apri link in una nuova scheda
msgid "openLinkInNewTab"
Expand Down Expand Up @@ -3934,6 +3985,11 @@ msgstr ""
msgid "ufficio_responsabile"
msgstr "Oficina responsable"

#: components/ItaliaTheme/View/Commons/HelpBox
# defaultMessage: Icona ulteriori informazioni
msgid "ulteriori_info"
msgstr ""

#: components/ItaliaTheme/View/Commons/TrasparenzaFields
#: components/ItaliaTheme/View/PaginaArgomentoView/PaginaArgomentoViewNoBlocks
#: components/ItaliaTheme/View/TrasparenzaView/DettagliProcedimentiView
Expand Down
Loading

0 comments on commit a33c93b

Please sign in to comment.