design-comuni-plone-theme 11.4.0 → 11.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/CHANGELOG.md +19 -0
  3. package/RELEASE.md +13 -0
  4. package/locales/de/LC_MESSAGES/volto.po +13 -0
  5. package/locales/en/LC_MESSAGES/volto.po +13 -0
  6. package/locales/es/LC_MESSAGES/volto.po +13 -0
  7. package/locales/fr/LC_MESSAGES/volto.po +13 -0
  8. package/locales/it/LC_MESSAGES/volto.po +13 -0
  9. package/locales/volto.pot +14 -1
  10. package/package.json +1 -1
  11. package/publiccode.yml +2 -2
  12. package/src/components/ItaliaTheme/Blocks/CountDown/Body.jsx +3 -1
  13. package/src/components/ItaliaTheme/Blocks/RssBlock/CardWithImageRssTemplate.jsx +3 -1
  14. package/src/components/ItaliaTheme/Blocks/RssBlock/CardWithoutImageRssTemplate.jsx +3 -1
  15. package/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithImageRssTemplateSkeleton.jsx +1 -1
  16. package/src/components/ItaliaTheme/Blocks/RssBlock/TemplatesSkeleton/CardWithoutImageRssTemplateSkeleton.jsx +1 -1
  17. package/src/components/ItaliaTheme/Blocks/SearchSections/Body.jsx +3 -1
  18. package/src/components/ItaliaTheme/Header/SocialHeader.jsx +3 -3
  19. package/src/components/ItaliaTheme/Search/Search.jsx +1 -1
  20. package/src/components/ItaliaTheme/View/Commons/Actions.jsx +53 -20
  21. package/src/components/ItaliaTheme/View/Commons/ContactsCard.jsx +3 -2
  22. package/src/components/ItaliaTheme/View/Commons/Sharing.jsx +7 -1
  23. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView.jsx +36 -19
  24. package/src/components/ItaliaTheme/View/FAQ/FaqFolder/SearchBar.jsx +1 -0
  25. package/src/components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView.jsx +3 -1
  26. package/src/helpers/contentHelper.js +74 -2
  27. package/src/theme/ItaliaTheme/Components/_sharing.scss +2 -0
  28. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/Blocks/_highlitedContent.scss +8 -2
  29. package/src/theme/ItaliaTheme/Subsites/ItaliaTheme/_common.scss +3 -1
Binary file
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
 
2
2
 
3
+ ## [11.4.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.4.0...v11.4.1) (2024-02-08)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * a11y use of Sharing and Actions menus ([#519](https://github.com/redturtle/design-comuni-plone-theme/issues/519)) ([67474cc](https://github.com/redturtle/design-comuni-plone-theme/commit/67474ccafcad1e3ac7e447a10c3b923e42b68206))
9
+ * accessibility for subsites ([#527](https://github.com/redturtle/design-comuni-plone-theme/issues/527)) ([f1fbea7](https://github.com/redturtle/design-comuni-plone-theme/commit/f1fbea765646d2af081e54772c33843283fc741a))
10
+ * better a11y for social links ([#518](https://github.com/redturtle/design-comuni-plone-theme/issues/518)) ([49ea781](https://github.com/redturtle/design-comuni-plone-theme/commit/49ea7812e624da5b7d09485d0ad528478a716f90))
11
+ * better screen reader user experience in contacts, contact type is read now alongside value ([#516](https://github.com/redturtle/design-comuni-plone-theme/issues/516)) ([bdd96f2](https://github.com/redturtle/design-comuni-plone-theme/commit/bdd96f26f85c616c77fb4a34cdd2b3dc15210bfb))
12
+ * do not show empty headings if title in block is not configured ([#517](https://github.com/redturtle/design-comuni-plone-theme/issues/517)) ([2152118](https://github.com/redturtle/design-comuni-plone-theme/commit/21521183e875118b793beccbcb964dc97f1ad982))
13
+ * in FAQFolderView aria controls and live attributes correctly now and place regions accordingly ([#515](https://github.com/redturtle/design-comuni-plone-theme/issues/515)) ([49fd553](https://github.com/redturtle/design-comuni-plone-theme/commit/49fd553eb49144bd5374cae081cfccf27e139471))
14
+ * semantic headings levels in rss templates, all h3 now ([#521](https://github.com/redturtle/design-comuni-plone-theme/issues/521)) ([b6b13fd](https://github.com/redturtle/design-comuni-plone-theme/commit/b6b13fd79fe417f15a97df4fadfc58bd6e66031e))
15
+ * skip link go to content in site search page ([#520](https://github.com/redturtle/design-comuni-plone-theme/issues/520)) ([b78b47f](https://github.com/redturtle/design-comuni-plone-theme/commit/b78b47f4fb8424ff2a1e6c663edb72ded32f3fe4))
16
+
17
+
18
+ ### Documentation
19
+
20
+ * updated publiccode and release log ([afc5083](https://github.com/redturtle/design-comuni-plone-theme/commit/afc50835eea3413f770ea8db4b9bfaad46dd1d5c))
21
+
3
22
  ## [11.4.0](https://github.com/redturtle/design-comuni-plone-theme/compare/v11.3.4...v11.4.0) (2024-02-06)
4
23
 
5
24
 
package/RELEASE.md CHANGED
@@ -41,6 +41,19 @@
41
41
  - ...
42
42
  -->
43
43
 
44
+ ## Versione 11.4.1 (08/02/2024)
45
+
46
+ ### Fix
47
+
48
+ - Migliorata l'accessibilità e aggiunto elementi per migliorare l'esperienza d'uso degli utenti che utilizzano screen reader nella vista Cartella FAQ
49
+ - Sistemato lo skiplink "Vai al contenuto" nella pagina principale di ricerca del sito
50
+ - Risolto un problema relativo alla navigazione da tastiera e di gestione del focus nei menu a tendina "Condividi" e "Azioni" nelle testate delle viste dei Content Type che le implementano.
51
+ - Reso il link ai diversi social elencati parlante, ora viene riportato "Seguici su nome_del_social"
52
+ - Rimossi gli heading per alcuni blocchi nel caso il titolo non sia presente al fine di migliorare l'esperienza con l'uso di screen reader
53
+ - Migliorata l'accessibilità per il blocco Contenuti in Evidenza e per i bottoni nei sottositi
54
+ - Sistemato l'html semantico degli heading per i template del Blocco Listing variazione RSS, migliorata l'esperienza d'uso per gli utenti che utilizzano screen reader
55
+ - Migliorata l'accessibilità per i contatti, lo screen reader ora legge anche il tipo di contatto oltre al testo (ad es. Telefono: numero di telefono)
56
+
44
57
  ## Versione 11.4.0 (06/02/2024)
45
58
 
46
59
  ### Novità
@@ -733,6 +733,7 @@ msgid "accordion_block"
733
733
  msgstr ""
734
734
 
735
735
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
736
+ #: helpers/contentHelper
736
737
  # defaultMessage: Account
737
738
  msgid "account"
738
739
  msgstr ""
@@ -1840,6 +1841,7 @@ msgid "elementi_di_interesse"
1840
1841
  msgstr ""
1841
1842
 
1842
1843
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1844
+ #: helpers/contentHelper
1843
1845
  # defaultMessage: Email
1844
1846
  msgid "email"
1845
1847
  msgstr ""
@@ -1943,6 +1945,7 @@ msgstr "Typ een trefwoord om antwoorden te vinden"
1943
1945
 
1944
1946
  #: components/ItaliaTheme/View/Commons/ContactLink
1945
1947
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1948
+ #: helpers/contentHelper
1946
1949
  # defaultMessage: Fax
1947
1950
  msgid "fax"
1948
1951
  msgstr ""
@@ -2113,6 +2116,7 @@ msgid "foto_attivita_politica"
2113
2116
  msgstr ""
2114
2117
 
2115
2118
  #: components/ItaliaTheme/Search/Search
2119
+ #: components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView
2116
2120
  # defaultMessage: Trovati {total} risultati.
2117
2121
  msgid "found_n_results"
2118
2122
  msgstr ""
@@ -2299,6 +2303,7 @@ msgid "link_siti_esterni"
2299
2303
  msgstr ""
2300
2304
 
2301
2305
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2306
+ #: helpers/contentHelper
2302
2307
  # defaultMessage: LinkedIn
2303
2308
  msgid "linkedin"
2304
2309
  msgstr ""
@@ -2709,6 +2714,7 @@ msgstr ""
2709
2714
 
2710
2715
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2711
2716
  #: components/ItaliaTheme/View/VenueView/VenueContacts
2717
+ #: helpers/contentHelper
2712
2718
  # defaultMessage: PEC
2713
2719
  msgid "pec"
2714
2720
  msgstr ""
@@ -3618,6 +3624,7 @@ msgid "skiplink-navigation"
3618
3624
  msgstr ""
3619
3625
 
3620
3626
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3627
+ #: helpers/contentHelper
3621
3628
  # defaultMessage: Skype
3622
3629
  msgid "skype"
3623
3630
  msgstr ""
@@ -3633,6 +3640,7 @@ msgid "slidesToShow"
3633
3640
  msgstr ""
3634
3641
 
3635
3642
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3643
+ #: helpers/contentHelper
3636
3644
  # defaultMessage: Social
3637
3645
  msgid "social"
3638
3646
  msgstr ""
@@ -3779,6 +3787,7 @@ msgstr ""
3779
3787
 
3780
3788
  #: components/ItaliaTheme/View/Commons/ContactLink
3781
3789
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3790
+ #: helpers/contentHelper
3782
3791
  # defaultMessage: Tel
3783
3792
  msgid "telefono"
3784
3793
  msgstr ""
@@ -3789,6 +3798,7 @@ msgid "telefono_sede"
3789
3798
  msgstr ""
3790
3799
 
3791
3800
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3801
+ #: helpers/contentHelper
3792
3802
  # defaultMessage: Telegram
3793
3803
  msgid "telegram"
3794
3804
  msgstr ""
@@ -3899,6 +3909,7 @@ msgid "trasparenza"
3899
3909
  msgstr ""
3900
3910
 
3901
3911
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3912
+ #: helpers/contentHelper
3902
3913
  # defaultMessage: Twitter
3903
3914
  msgid "twitter"
3904
3915
  msgstr ""
@@ -3968,6 +3979,7 @@ msgid "update_date"
3968
3979
  msgstr ""
3969
3980
 
3970
3981
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3982
+ #: helpers/contentHelper
3971
3983
  # defaultMessage: Sito web
3972
3984
  msgid "url"
3973
3985
  msgstr ""
@@ -4027,6 +4039,7 @@ msgid "vincoli"
4027
4039
  msgstr ""
4028
4040
 
4029
4041
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
4042
+ #: helpers/contentHelper
4030
4043
  # defaultMessage: Whatsapp
4031
4044
  msgid "whatsapp"
4032
4045
  msgstr ""
@@ -718,6 +718,7 @@ msgid "accordion_block"
718
718
  msgstr ""
719
719
 
720
720
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
721
+ #: helpers/contentHelper
721
722
  # defaultMessage: Account
722
723
  msgid "account"
723
724
  msgstr ""
@@ -1825,6 +1826,7 @@ msgid "elementi_di_interesse"
1825
1826
  msgstr "Elements of interest"
1826
1827
 
1827
1828
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1829
+ #: helpers/contentHelper
1828
1830
  # defaultMessage: Email
1829
1831
  msgid "email"
1830
1832
  msgstr ""
@@ -1928,6 +1930,7 @@ msgstr "Type a keyword to find answers"
1928
1930
 
1929
1931
  #: components/ItaliaTheme/View/Commons/ContactLink
1930
1932
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1933
+ #: helpers/contentHelper
1931
1934
  # defaultMessage: Fax
1932
1935
  msgid "fax"
1933
1936
  msgstr "Fax"
@@ -2098,6 +2101,7 @@ msgid "foto_attivita_politica"
2098
2101
  msgstr "Photo of political activity"
2099
2102
 
2100
2103
  #: components/ItaliaTheme/Search/Search
2104
+ #: components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView
2101
2105
  # defaultMessage: Trovati {total} risultati.
2102
2106
  msgid "found_n_results"
2103
2107
  msgstr "Found {total} results"
@@ -2284,6 +2288,7 @@ msgid "link_siti_esterni"
2284
2288
  msgstr "Useful links"
2285
2289
 
2286
2290
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2291
+ #: helpers/contentHelper
2287
2292
  # defaultMessage: LinkedIn
2288
2293
  msgid "linkedin"
2289
2294
  msgstr ""
@@ -2694,6 +2699,7 @@ msgstr "Sponsored by"
2694
2699
 
2695
2700
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2696
2701
  #: components/ItaliaTheme/View/VenueView/VenueContacts
2702
+ #: helpers/contentHelper
2697
2703
  # defaultMessage: PEC
2698
2704
  msgid "pec"
2699
2705
  msgstr "PEC"
@@ -3603,6 +3609,7 @@ msgid "skiplink-navigation"
3603
3609
  msgstr "Go to navigation"
3604
3610
 
3605
3611
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3612
+ #: helpers/contentHelper
3606
3613
  # defaultMessage: Skype
3607
3614
  msgid "skype"
3608
3615
  msgstr ""
@@ -3618,6 +3625,7 @@ msgid "slidesToShow"
3618
3625
  msgstr ""
3619
3626
 
3620
3627
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3628
+ #: helpers/contentHelper
3621
3629
  # defaultMessage: Social
3622
3630
  msgid "social"
3623
3631
  msgstr ""
@@ -3764,6 +3772,7 @@ msgstr ""
3764
3772
 
3765
3773
  #: components/ItaliaTheme/View/Commons/ContactLink
3766
3774
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3775
+ #: helpers/contentHelper
3767
3776
  # defaultMessage: Tel
3768
3777
  msgid "telefono"
3769
3778
  msgstr "Phone"
@@ -3774,6 +3783,7 @@ msgid "telefono_sede"
3774
3783
  msgstr "Phone"
3775
3784
 
3776
3785
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3786
+ #: helpers/contentHelper
3777
3787
  # defaultMessage: Telegram
3778
3788
  msgid "telegram"
3779
3789
  msgstr ""
@@ -3884,6 +3894,7 @@ msgid "trasparenza"
3884
3894
  msgstr ""
3885
3895
 
3886
3896
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3897
+ #: helpers/contentHelper
3887
3898
  # defaultMessage: Twitter
3888
3899
  msgid "twitter"
3889
3900
  msgstr ""
@@ -3953,6 +3964,7 @@ msgid "update_date"
3953
3964
  msgstr ""
3954
3965
 
3955
3966
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3967
+ #: helpers/contentHelper
3956
3968
  # defaultMessage: Sito web
3957
3969
  msgid "url"
3958
3970
  msgstr ""
@@ -4012,6 +4024,7 @@ msgid "vincoli"
4012
4024
  msgstr "Constraints"
4013
4025
 
4014
4026
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
4027
+ #: helpers/contentHelper
4015
4028
  # defaultMessage: Whatsapp
4016
4029
  msgid "whatsapp"
4017
4030
  msgstr ""
@@ -727,6 +727,7 @@ msgid "accordion_block"
727
727
  msgstr "Acordeón"
728
728
 
729
729
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
730
+ #: helpers/contentHelper
730
731
  # defaultMessage: Account
731
732
  msgid "account"
732
733
  msgstr ""
@@ -1834,6 +1835,7 @@ msgid "elementi_di_interesse"
1834
1835
  msgstr "Elementos de interés"
1835
1836
 
1836
1837
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1838
+ #: helpers/contentHelper
1837
1839
  # defaultMessage: Email
1838
1840
  msgid "email"
1839
1841
  msgstr ""
@@ -1937,6 +1939,7 @@ msgstr "Escriba una palabra clave para encontrar respuestas"
1937
1939
 
1938
1940
  #: components/ItaliaTheme/View/Commons/ContactLink
1939
1941
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1942
+ #: helpers/contentHelper
1940
1943
  # defaultMessage: Fax
1941
1944
  msgid "fax"
1942
1945
  msgstr "Fax"
@@ -2107,6 +2110,7 @@ msgid "foto_attivita_politica"
2107
2110
  msgstr "Foto de la actividad política"
2108
2111
 
2109
2112
  #: components/ItaliaTheme/Search/Search
2113
+ #: components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView
2110
2114
  # defaultMessage: Trovati {total} risultati.
2111
2115
  msgid "found_n_results"
2112
2116
  msgstr "Encontrados {total} resultados"
@@ -2293,6 +2297,7 @@ msgid "link_siti_esterni"
2293
2297
  msgstr "Enlaces útiles"
2294
2298
 
2295
2299
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2300
+ #: helpers/contentHelper
2296
2301
  # defaultMessage: LinkedIn
2297
2302
  msgid "linkedin"
2298
2303
  msgstr ""
@@ -2703,6 +2708,7 @@ msgstr "Patrocinado por"
2703
2708
 
2704
2709
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2705
2710
  #: components/ItaliaTheme/View/VenueView/VenueContacts
2711
+ #: helpers/contentHelper
2706
2712
  # defaultMessage: PEC
2707
2713
  msgid "pec"
2708
2714
  msgstr "PEC"
@@ -3612,6 +3618,7 @@ msgid "skiplink-navigation"
3612
3618
  msgstr "Ir a navegación"
3613
3619
 
3614
3620
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3621
+ #: helpers/contentHelper
3615
3622
  # defaultMessage: Skype
3616
3623
  msgid "skype"
3617
3624
  msgstr ""
@@ -3627,6 +3634,7 @@ msgid "slidesToShow"
3627
3634
  msgstr "N° diapositivas para mostrar"
3628
3635
 
3629
3636
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3637
+ #: helpers/contentHelper
3630
3638
  # defaultMessage: Social
3631
3639
  msgid "social"
3632
3640
  msgstr ""
@@ -3773,6 +3781,7 @@ msgstr "Con el apoyo de"
3773
3781
 
3774
3782
  #: components/ItaliaTheme/View/Commons/ContactLink
3775
3783
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3784
+ #: helpers/contentHelper
3776
3785
  # defaultMessage: Tel
3777
3786
  msgid "telefono"
3778
3787
  msgstr "Teléfono"
@@ -3783,6 +3792,7 @@ msgid "telefono_sede"
3783
3792
  msgstr "Teléfono"
3784
3793
 
3785
3794
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3795
+ #: helpers/contentHelper
3786
3796
  # defaultMessage: Telegram
3787
3797
  msgid "telegram"
3788
3798
  msgstr ""
@@ -3893,6 +3903,7 @@ msgid "trasparenza"
3893
3903
  msgstr "Transparencia"
3894
3904
 
3895
3905
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3906
+ #: helpers/contentHelper
3896
3907
  # defaultMessage: Twitter
3897
3908
  msgid "twitter"
3898
3909
  msgstr ""
@@ -3962,6 +3973,7 @@ msgid "update_date"
3962
3973
  msgstr ""
3963
3974
 
3964
3975
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3976
+ #: helpers/contentHelper
3965
3977
  # defaultMessage: Sito web
3966
3978
  msgid "url"
3967
3979
  msgstr ""
@@ -4021,6 +4033,7 @@ msgid "vincoli"
4021
4033
  msgstr "Restricciones"
4022
4034
 
4023
4035
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
4036
+ #: helpers/contentHelper
4024
4037
  # defaultMessage: Whatsapp
4025
4038
  msgid "whatsapp"
4026
4039
  msgstr ""
@@ -735,6 +735,7 @@ msgid "accordion_block"
735
735
  msgstr ""
736
736
 
737
737
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
738
+ #: helpers/contentHelper
738
739
  # defaultMessage: Account
739
740
  msgid "account"
740
741
  msgstr ""
@@ -1842,6 +1843,7 @@ msgid "elementi_di_interesse"
1842
1843
  msgstr "Objets d'intérêt"
1843
1844
 
1844
1845
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1846
+ #: helpers/contentHelper
1845
1847
  # defaultMessage: Email
1846
1848
  msgid "email"
1847
1849
  msgstr ""
@@ -1945,6 +1947,7 @@ msgstr "Tapez un mot-clé pour trouver des réponses"
1945
1947
 
1946
1948
  #: components/ItaliaTheme/View/Commons/ContactLink
1947
1949
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1950
+ #: helpers/contentHelper
1948
1951
  # defaultMessage: Fax
1949
1952
  msgid "fax"
1950
1953
  msgstr ""
@@ -2115,6 +2118,7 @@ msgid "foto_attivita_politica"
2115
2118
  msgstr "Photo d'activité politique"
2116
2119
 
2117
2120
  #: components/ItaliaTheme/Search/Search
2121
+ #: components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView
2118
2122
  # defaultMessage: Trovati {total} risultati.
2119
2123
  msgid "found_n_results"
2120
2124
  msgstr "{total} résultats trouvés"
@@ -2301,6 +2305,7 @@ msgid "link_siti_esterni"
2301
2305
  msgstr "Liens utiles"
2302
2306
 
2303
2307
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2308
+ #: helpers/contentHelper
2304
2309
  # defaultMessage: LinkedIn
2305
2310
  msgid "linkedin"
2306
2311
  msgstr ""
@@ -2711,6 +2716,7 @@ msgstr "Sponsorisé par"
2711
2716
 
2712
2717
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2713
2718
  #: components/ItaliaTheme/View/VenueView/VenueContacts
2719
+ #: helpers/contentHelper
2714
2720
  # defaultMessage: PEC
2715
2721
  msgid "pec"
2716
2722
  msgstr "PEC"
@@ -3620,6 +3626,7 @@ msgid "skiplink-navigation"
3620
3626
  msgstr "Aller à la navigation"
3621
3627
 
3622
3628
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3629
+ #: helpers/contentHelper
3623
3630
  # defaultMessage: Skype
3624
3631
  msgid "skype"
3625
3632
  msgstr ""
@@ -3635,6 +3642,7 @@ msgid "slidesToShow"
3635
3642
  msgstr ""
3636
3643
 
3637
3644
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3645
+ #: helpers/contentHelper
3638
3646
  # defaultMessage: Social
3639
3647
  msgid "social"
3640
3648
  msgstr ""
@@ -3781,6 +3789,7 @@ msgstr ""
3781
3789
 
3782
3790
  #: components/ItaliaTheme/View/Commons/ContactLink
3783
3791
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3792
+ #: helpers/contentHelper
3784
3793
  # defaultMessage: Tel
3785
3794
  msgid "telefono"
3786
3795
  msgstr "Tél."
@@ -3791,6 +3800,7 @@ msgid "telefono_sede"
3791
3800
  msgstr "Téléphone"
3792
3801
 
3793
3802
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3803
+ #: helpers/contentHelper
3794
3804
  # defaultMessage: Telegram
3795
3805
  msgid "telegram"
3796
3806
  msgstr ""
@@ -3901,6 +3911,7 @@ msgid "trasparenza"
3901
3911
  msgstr ""
3902
3912
 
3903
3913
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3914
+ #: helpers/contentHelper
3904
3915
  # defaultMessage: Twitter
3905
3916
  msgid "twitter"
3906
3917
  msgstr ""
@@ -3970,6 +3981,7 @@ msgid "update_date"
3970
3981
  msgstr ""
3971
3982
 
3972
3983
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3984
+ #: helpers/contentHelper
3973
3985
  # defaultMessage: Sito web
3974
3986
  msgid "url"
3975
3987
  msgstr ""
@@ -4029,6 +4041,7 @@ msgid "vincoli"
4029
4041
  msgstr "Contraintes"
4030
4042
 
4031
4043
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
4044
+ #: helpers/contentHelper
4032
4045
  # defaultMessage: Whatsapp
4033
4046
  msgid "whatsapp"
4034
4047
  msgstr ""
@@ -718,6 +718,7 @@ msgid "accordion_block"
718
718
  msgstr "Accordion"
719
719
 
720
720
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
721
+ #: helpers/contentHelper
721
722
  # defaultMessage: Account
722
723
  msgid "account"
723
724
  msgstr "Account"
@@ -1825,6 +1826,7 @@ msgid "elementi_di_interesse"
1825
1826
  msgstr "Elementi di interesse"
1826
1827
 
1827
1828
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1829
+ #: helpers/contentHelper
1828
1830
  # defaultMessage: Email
1829
1831
  msgid "email"
1830
1832
  msgstr "E-mail"
@@ -1928,6 +1930,7 @@ msgstr "Digita una parola chiave per trovare le risposte"
1928
1930
 
1929
1931
  #: components/ItaliaTheme/View/Commons/ContactLink
1930
1932
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1933
+ #: helpers/contentHelper
1931
1934
  # defaultMessage: Fax
1932
1935
  msgid "fax"
1933
1936
  msgstr "Fax"
@@ -2098,6 +2101,7 @@ msgid "foto_attivita_politica"
2098
2101
  msgstr "Foto dell'attività politica"
2099
2102
 
2100
2103
  #: components/ItaliaTheme/Search/Search
2104
+ #: components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView
2101
2105
  # defaultMessage: Trovati {total} risultati.
2102
2106
  msgid "found_n_results"
2103
2107
  msgstr "Trovati {total} risultati"
@@ -2284,6 +2288,7 @@ msgid "link_siti_esterni"
2284
2288
  msgstr "Link utili"
2285
2289
 
2286
2290
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2291
+ #: helpers/contentHelper
2287
2292
  # defaultMessage: LinkedIn
2288
2293
  msgid "linkedin"
2289
2294
  msgstr "LinkedIn"
@@ -2694,6 +2699,7 @@ msgstr "Patrocinato da"
2694
2699
 
2695
2700
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2696
2701
  #: components/ItaliaTheme/View/VenueView/VenueContacts
2702
+ #: helpers/contentHelper
2697
2703
  # defaultMessage: PEC
2698
2704
  msgid "pec"
2699
2705
  msgstr "PEC"
@@ -3603,6 +3609,7 @@ msgid "skiplink-navigation"
3603
3609
  msgstr "Vai alla navigazione"
3604
3610
 
3605
3611
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3612
+ #: helpers/contentHelper
3606
3613
  # defaultMessage: Skype
3607
3614
  msgid "skype"
3608
3615
  msgstr "Skype"
@@ -3618,6 +3625,7 @@ msgid "slidesToShow"
3618
3625
  msgstr "N° slide da mostrare"
3619
3626
 
3620
3627
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3628
+ #: helpers/contentHelper
3621
3629
  # defaultMessage: Social
3622
3630
  msgid "social"
3623
3631
  msgstr "Social"
@@ -3764,6 +3772,7 @@ msgstr "Con il supporto di"
3764
3772
 
3765
3773
  #: components/ItaliaTheme/View/Commons/ContactLink
3766
3774
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3775
+ #: helpers/contentHelper
3767
3776
  # defaultMessage: Tel
3768
3777
  msgid "telefono"
3769
3778
  msgstr "Telefono"
@@ -3774,6 +3783,7 @@ msgid "telefono_sede"
3774
3783
  msgstr "Telefono"
3775
3784
 
3776
3785
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3786
+ #: helpers/contentHelper
3777
3787
  # defaultMessage: Telegram
3778
3788
  msgid "telegram"
3779
3789
  msgstr "Telegram"
@@ -3884,6 +3894,7 @@ msgid "trasparenza"
3884
3894
  msgstr "Trasparenza"
3885
3895
 
3886
3896
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3897
+ #: helpers/contentHelper
3887
3898
  # defaultMessage: Twitter
3888
3899
  msgid "twitter"
3889
3900
  msgstr "Twitter"
@@ -3953,6 +3964,7 @@ msgid "update_date"
3953
3964
  msgstr "Data di aggiornamento"
3954
3965
 
3955
3966
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3967
+ #: helpers/contentHelper
3956
3968
  # defaultMessage: Sito web
3957
3969
  msgid "url"
3958
3970
  msgstr "Sito web"
@@ -4012,6 +4024,7 @@ msgid "vincoli"
4012
4024
  msgstr "Vincoli"
4013
4025
 
4014
4026
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
4027
+ #: helpers/contentHelper
4015
4028
  # defaultMessage: Whatsapp
4016
4029
  msgid "whatsapp"
4017
4030
  msgstr "Whatsapp"
package/locales/volto.pot CHANGED
@@ -1,7 +1,7 @@
1
1
  msgid ""
2
2
  msgstr ""
3
3
  "Project-Id-Version: Plone\n"
4
- "POT-Creation-Date: 2024-01-15T16:05:18.583Z\n"
4
+ "POT-Creation-Date: 2024-02-08T09:29:49.246Z\n"
5
5
  "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
6
  "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
7
  "MIME-Version: 1.0\n"
@@ -720,6 +720,7 @@ msgid "accordion_block"
720
720
  msgstr ""
721
721
 
722
722
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
723
+ #: helpers/contentHelper
723
724
  # defaultMessage: Account
724
725
  msgid "account"
725
726
  msgstr ""
@@ -1827,6 +1828,7 @@ msgid "elementi_di_interesse"
1827
1828
  msgstr ""
1828
1829
 
1829
1830
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1831
+ #: helpers/contentHelper
1830
1832
  # defaultMessage: Email
1831
1833
  msgid "email"
1832
1834
  msgstr ""
@@ -1930,6 +1932,7 @@ msgstr ""
1930
1932
 
1931
1933
  #: components/ItaliaTheme/View/Commons/ContactLink
1932
1934
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
1935
+ #: helpers/contentHelper
1933
1936
  # defaultMessage: Fax
1934
1937
  msgid "fax"
1935
1938
  msgstr ""
@@ -2100,6 +2103,7 @@ msgid "foto_attivita_politica"
2100
2103
  msgstr ""
2101
2104
 
2102
2105
  #: components/ItaliaTheme/Search/Search
2106
+ #: components/ItaliaTheme/View/FAQ/FaqFolder/FaqFolderView
2103
2107
  # defaultMessage: Trovati {total} risultati.
2104
2108
  msgid "found_n_results"
2105
2109
  msgstr ""
@@ -2286,6 +2290,7 @@ msgid "link_siti_esterni"
2286
2290
  msgstr ""
2287
2291
 
2288
2292
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2293
+ #: helpers/contentHelper
2289
2294
  # defaultMessage: LinkedIn
2290
2295
  msgid "linkedin"
2291
2296
  msgstr ""
@@ -2696,6 +2701,7 @@ msgstr ""
2696
2701
 
2697
2702
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
2698
2703
  #: components/ItaliaTheme/View/VenueView/VenueContacts
2704
+ #: helpers/contentHelper
2699
2705
  # defaultMessage: PEC
2700
2706
  msgid "pec"
2701
2707
  msgstr ""
@@ -3605,6 +3611,7 @@ msgid "skiplink-navigation"
3605
3611
  msgstr ""
3606
3612
 
3607
3613
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3614
+ #: helpers/contentHelper
3608
3615
  # defaultMessage: Skype
3609
3616
  msgid "skype"
3610
3617
  msgstr ""
@@ -3620,6 +3627,7 @@ msgid "slidesToShow"
3620
3627
  msgstr ""
3621
3628
 
3622
3629
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3630
+ #: helpers/contentHelper
3623
3631
  # defaultMessage: Social
3624
3632
  msgid "social"
3625
3633
  msgstr ""
@@ -3766,6 +3774,7 @@ msgstr ""
3766
3774
 
3767
3775
  #: components/ItaliaTheme/View/Commons/ContactLink
3768
3776
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3777
+ #: helpers/contentHelper
3769
3778
  # defaultMessage: Tel
3770
3779
  msgid "telefono"
3771
3780
  msgstr ""
@@ -3776,6 +3785,7 @@ msgid "telefono_sede"
3776
3785
  msgstr ""
3777
3786
 
3778
3787
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3788
+ #: helpers/contentHelper
3779
3789
  # defaultMessage: Telegram
3780
3790
  msgid "telegram"
3781
3791
  msgstr ""
@@ -3886,6 +3896,7 @@ msgid "trasparenza"
3886
3896
  msgstr ""
3887
3897
 
3888
3898
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3899
+ #: helpers/contentHelper
3889
3900
  # defaultMessage: Twitter
3890
3901
  msgid "twitter"
3891
3902
  msgstr ""
@@ -3955,6 +3966,7 @@ msgid "update_date"
3955
3966
  msgstr ""
3956
3967
 
3957
3968
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
3969
+ #: helpers/contentHelper
3958
3970
  # defaultMessage: Sito web
3959
3971
  msgid "url"
3960
3972
  msgstr ""
@@ -4014,6 +4026,7 @@ msgid "vincoli"
4014
4026
  msgstr ""
4015
4027
 
4016
4028
  #: components/ItaliaTheme/View/PuntoDiContattoView/PuntoDiContattoView
4029
+ #: helpers/contentHelper
4017
4030
  # defaultMessage: Whatsapp
4018
4031
  msgid "whatsapp"
4019
4032
  msgstr ""
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "design-comuni-plone-theme",
3
3
  "description": "Volto Theme for Italia design guidelines",
4
4
  "license": "GPL-v3",
5
- "version": "11.4.0",
5
+ "version": "11.4.1",
6
6
  "main": "src/index.js",
7
7
  "keywords": [
8
8
  "volto-addon",
package/publiccode.yml CHANGED
@@ -227,9 +227,9 @@ maintenance:
227
227
  name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
228
228
  platforms:
229
229
  - web
230
- releaseDate: '2024-02-06'
230
+ releaseDate: '2024-02-08'
231
231
  softwareType: standalone/web
232
- softwareVersion: 11.4.0
232
+ softwareVersion: 11.4.1
233
233
  url: 'https://github.com/italia/design-comuni-plone-theme'
234
234
  usedBy:
235
235
  - ASP Comuni Modenesi Area Nord
@@ -50,7 +50,9 @@ const Body = ({ block, sections, data }) => {
50
50
  <SearchSectionsBackground />
51
51
  <div className="container">
52
52
  <div className="searchContainer d-flex w-100">
53
- <h2 className="text-secondary mb-4">{block.title}</h2>
53
+ {block.title && (
54
+ <h2 className="text-secondary mb-4">{block.title}</h2>
55
+ )}
54
56
  <div className="searchbar lightgrey-bg-c2 shadow-sm rounded d-flex w-100">
55
57
  <input
56
58
  className="inputSearch lightgrey-bg-c2"
@@ -82,7 +82,9 @@ const CardWithImageRssTemplate = ({
82
82
  {getViewDate(item.pubDate || item.date, intl.locale)}
83
83
  </span>{' '}
84
84
  </div>
85
- <CardTitle tag="h6">{item.title}</CardTitle>
85
+ <CardTitle tag="h3" className="h6">
86
+ {item.title}
87
+ </CardTitle>
86
88
  {item?.source?.length > 0 && (
87
89
  <div className="source-title">
88
90
  <span className="source">{item.source}</span>
@@ -70,7 +70,9 @@ const CardWithoutImageRssTemplate = ({
70
70
  </span>
71
71
  )}
72
72
  </div>
73
- <CardTitle tag="h5">{item.title}</CardTitle>
73
+ <CardTitle tag="h3" className="h6">
74
+ {item.title}
75
+ </CardTitle>
74
76
  {item?.source?.length > 0 && (
75
77
  <div className="source-title">
76
78
  <span className="source">{item.source}</span>
@@ -34,7 +34,7 @@ const CardWithImageRssTemplateSkeleton = ({ isEditMode, data = {} }) => {
34
34
 
35
35
  <CardBody tag="div" className="px-4">
36
36
  <div className="category-top"></div>
37
- <CardTitle tag="h6"></CardTitle>
37
+ <CardTitle tag="h3" className="h6"></CardTitle>
38
38
  </CardBody>
39
39
  <CardReadMore
40
40
  iconName="it-arrow-right"
@@ -28,7 +28,7 @@ const CardWithoutImageRssTemplateSkeleton = ({ isEditMode, data = {} }) => {
28
28
  <Card noWrapper={false} tag="div">
29
29
  <CardBody tag="div">
30
30
  <div className="category-top"></div>
31
- <CardTitle tag="h5"></CardTitle>
31
+ <CardTitle tag="h3" className="h6"></CardTitle>
32
32
  <CardText tag="p" className="font-serif"></CardText>
33
33
  </CardBody>
34
34
  <CardReadMore
@@ -52,7 +52,9 @@ const Body = ({ block, sections }) => {
52
52
  )}
53
53
  <div className="container">
54
54
  <div className="searchContainer d-flex w-100">
55
- <h2 className="search-section-title mb-4">{block.title}</h2>
55
+ {block.title && (
56
+ <h2 className="search-section-title mb-4">{block.title}</h2>
57
+ )}
56
58
  <div className="searchbar shadow-sm rounded d-flex w-100">
57
59
  <button
58
60
  className="rounded-start"
@@ -50,9 +50,9 @@ const SocialHeader = () => {
50
50
  {socials?.map((social, idx) => (
51
51
  <li key={idx}>
52
52
  <a
53
- title={
54
- social.title + ' ' + intl.formatMessage(messages.socialOpen)
55
- }
53
+ title={`${intl.formatMessage(messages.followUs)} ${
54
+ social.title
55
+ } ${intl.formatMessage(messages.socialOpen)}`}
56
56
  href={social.url}
57
57
  target="_blank"
58
58
  rel="noopener noreferrer"
@@ -357,7 +357,7 @@ const Search = () => {
357
357
  <>
358
358
  <Helmet title={intl.formatMessage(messages.searchResults)} />
359
359
 
360
- <div className="public-ui search-view">
360
+ <div className="public-ui search-view" id="view">
361
361
  <Container className="px-4 my-4">
362
362
  <Row>
363
363
  <Col>
@@ -9,7 +9,6 @@ import {
9
9
  LinkListItem,
10
10
  Button,
11
11
  } from 'design-react-kit';
12
-
13
12
  import { toPublicURL } from '@plone/volto/helpers';
14
13
  import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
15
14
 
@@ -42,7 +41,7 @@ const messages = defineMessages({
42
41
  const Actions = (props) => {
43
42
  const intl = useIntl();
44
43
  const publicUrl = toPublicURL(props.url);
45
- let socials = [
44
+ const socials = [
46
45
  {
47
46
  id: 'print',
48
47
  attributes: null,
@@ -58,8 +57,25 @@ const Actions = (props) => {
58
57
  icon: 'it-mail',
59
58
  },
60
59
  ];
60
+ const handlePrint = (e) => {
61
+ e.preventDefault();
62
+ return window.print();
63
+ };
64
+ const handleKeyDown = (e) => {
65
+ if (e.key === 'Enter' || e.code === 'Space') {
66
+ const childElement = e.target.firstChild;
67
+ if (childElement.tagName === 'BUTTON' || childElement.tagName === 'A') {
68
+ // La libreria del dropdown ha dei problemi nel suo focus manager interno.
69
+ // Enter e spazio chiudono il menu, quindi fermiamo il bubbling (per chiudere si usa esc,
70
+ // come correttamente dichiarato dallo screen reader), poi simuliamo il click
71
+ e.stopPropagation();
72
+ childElement.click();
73
+ }
74
+ }
75
+ };
76
+
61
77
  return (
62
- <UncontrolledDropdown className="d-inline page-actions">
78
+ <UncontrolledDropdown className="d-inline page-actions" id="page-actions">
63
79
  <DropdownToggle
64
80
  className={`btn btn-dropdown ps-0`}
65
81
  color=""
@@ -81,6 +97,14 @@ const Actions = (props) => {
81
97
  <DropdownMenu>
82
98
  <LinkList>
83
99
  {socials.map((item, i) => {
100
+ const commonButtonProps = {
101
+ icon: false,
102
+ title: item.title,
103
+ alt: item.title,
104
+ 'aria-label': item.title,
105
+ id: item.id,
106
+ };
107
+
84
108
  const icon = (
85
109
  <>
86
110
  <Icon
@@ -95,23 +119,32 @@ const Actions = (props) => {
95
119
  <span>{item.title}</span>
96
120
  </>
97
121
  );
98
- return item.id === 'print' ? (
99
- <li key={item.id}>
100
- <Button
101
- color="link"
102
- icon={false}
103
- tag="button"
104
- onClick={(e) => {
105
- e.preventDefault();
106
- return window.print();
107
- }}
108
- >
109
- {icon}
110
- </Button>
111
- </li>
112
- ) : (
113
- <LinkListItem href={item.url} key={item.id}>
114
- {icon}
122
+
123
+ let buttonProps = { ...commonButtonProps };
124
+ if (item.id === 'print')
125
+ buttonProps = {
126
+ ...commonButtonProps,
127
+ tag: 'button',
128
+ onClick: handlePrint,
129
+ color: 'link',
130
+ };
131
+ else if (item.id === 'mailto')
132
+ buttonProps = {
133
+ ...commonButtonProps,
134
+ href: item.url,
135
+ };
136
+ return (
137
+ // https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/menu_role#:~:text=within%20the%20menu-,tabindex,-attribute
138
+ <LinkListItem
139
+ key={item.id}
140
+ role="menuitem"
141
+ tabIndex={-1}
142
+ onKeyDown={handleKeyDown}
143
+ >
144
+ {item.id === 'print' && (
145
+ <Button {...buttonProps}>{icon}</Button>
146
+ )}
147
+ {item.id === 'mailto' && <a {...buttonProps}>{icon}</a>}
115
148
  </LinkListItem>
116
149
  );
117
150
  })}
@@ -5,10 +5,11 @@ import { getContent, resetContent } from '@plone/volto/actions';
5
5
  import { UniversalLink } from '@plone/volto/components';
6
6
  import { flattenToAppURL } from '@plone/volto/helpers';
7
7
  import { renderPDCItemValue } from 'design-comuni-plone-theme/helpers';
8
+ import { useIntl } from 'react-intl';
8
9
 
9
10
  const ContactsCard = ({ contact = {}, show_title = false, ...rest }) => {
10
11
  const dispatch = useDispatch();
11
-
12
+ const intl = useIntl();
12
13
  const contactUrl = contact['@id'];
13
14
 
14
15
  const { loading, loaded, error, data } = useSelector(
@@ -59,7 +60,7 @@ const ContactsCard = ({ contact = {}, show_title = false, ...rest }) => {
59
60
  {pdc.pdc_type}
60
61
  {pdc.pdc_desc ? ` - ${pdc.pdc_desc}` : ''}:{' '}
61
62
  </strong>
62
- {renderPDCItemValue(pdc)}
63
+ {renderPDCItemValue(pdc, intl)}
63
64
  </span>
64
65
  )) ?? null}
65
66
  </CardText>
@@ -85,7 +85,13 @@ const Sharing = ({ url, title }) => {
85
85
  <DropdownMenu>
86
86
  <LinkList>
87
87
  {socials.map((item, i) => (
88
- <LinkListItem href={item.url} key={item.id} target="_target">
88
+ <LinkListItem
89
+ href={item.url}
90
+ key={item.id}
91
+ target="_target"
92
+ role="menuitem"
93
+ tabIndex={-1}
94
+ >
89
95
  <Icon
90
96
  className={undefined}
91
97
  color=""
@@ -31,6 +31,10 @@ const messages = defineMessages({
31
31
  id: 'Faq Folder: Nessun risultato trovato',
32
32
  defaultMessage: 'Non ho trovato la risposta che cercavi',
33
33
  },
34
+ foundNResults: {
35
+ id: 'found_n_results',
36
+ defaultMessage: 'Trovati {total} risultati.',
37
+ },
34
38
  });
35
39
 
36
40
  /**
@@ -46,7 +50,6 @@ const FaqFolderView = ({ content }) => {
46
50
  const FAQ_FOLDER_KEY = 'FAQ_FOLDER';
47
51
  const structure_url = content?.['@components']?.['faq-structure']?.['@id'];
48
52
  const dispatch = useDispatch();
49
- //const intl = useIntl();
50
53
 
51
54
  const faq_structure = useSelector(
52
55
  (state) => state.content.subrequests?.[FAQ_FOLDER_KEY],
@@ -79,7 +82,7 @@ const FaqFolderView = ({ content }) => {
79
82
 
80
83
  useDebouncedEffect(
81
84
  () => {
82
- return doSearch();
85
+ doSearch();
83
86
  }, // eslint-disable-next-line react-hooks/exhaustive-deps
84
87
  600,
85
88
  [searchableText],
@@ -106,25 +109,39 @@ const FaqFolderView = ({ content }) => {
106
109
  <Container className="px-4">
107
110
  <TextOrBlocks content={content} />
108
111
 
109
- {faq_structure && (
110
- <>
111
- {faq_structure?.loaded &&
112
- searchableText?.length > 0 &&
113
- faq_structure.data?.items?.length === 0 && (
114
- <>{intl.formatMessage(messages.no_results)}</>
112
+ <div
113
+ className="faq-search-results-wrapper"
114
+ id="faq-search-results-region"
115
+ aria-live="polite"
116
+ >
117
+ {faq_structure && (
118
+ <>
119
+ {faq_structure.loaded && (
120
+ <p className="visually-hidden d-lg-block" aria-live="polite">
121
+ {intl.formatMessage(messages.foundNResults, {
122
+ total: faq_structure?.data?.items?.[0]?.items?.length || 0,
123
+ })}
124
+ </p>
125
+ )}
126
+ {faq_structure?.loaded &&
127
+ searchableText?.length > 0 &&
128
+ faq_structure.data?.items?.[0]?.items?.length === 0 && (
129
+ <p>{intl.formatMessage(messages.no_results)}</p>
130
+ )}
131
+
132
+ {faq_structure?.loading && (
133
+ <div className="mt-5 mb-5 loading">
134
+ <Spinner active double={false} small={false} tag="div" />
135
+ </div>
115
136
  )}
116
137
 
117
- {faq_structure?.loading && (
118
- <div className="mt-5 mb-5 loading">
119
- <Spinner active double={false} small={false} tag="div" />
120
- </div>
121
- )}
122
-
123
- {!faq_structure?.loading && faq_structure.data?.items?.[0] && (
124
- <FaqFolderTree tree={faq_structure.data.items[0]} />
125
- )}
126
- </>
127
- )}
138
+ {!faq_structure?.loading &&
139
+ faq_structure.data?.items?.length > 0 && (
140
+ <FaqFolderTree tree={faq_structure.data.items[0]} />
141
+ )}
142
+ </>
143
+ )}
144
+ </div>
128
145
 
129
146
  <PageMetadata content={content} />
130
147
  </Container>
@@ -66,6 +66,7 @@ const SearchBar = ({ searchableText, setSearchableText }) => {
66
66
  setSearchableText(e?.target?.value || '');
67
67
  }}
68
68
  type="text"
69
+ aria-controls="faq-search-results-region"
69
70
  />
70
71
  </div>
71
72
  </div>
@@ -110,7 +110,9 @@ const PuntoDiContattoView = (props) => {
110
110
  ? pdc?.pdc_type
111
111
  : intl.formatMessage(messages[pdc.pdc_type])}
112
112
  {pdc?.pdc_desc && ` - ${pdc.pdc_desc}`}:
113
- <span className="ms-1">{renderPDCItemValue(pdc)}</span>
113
+ <span className="ms-1">
114
+ {renderPDCItemValue(pdc, intl)}
115
+ </span>
114
116
  </h5>
115
117
  </div>
116
118
  );
@@ -1,4 +1,56 @@
1
1
  import { UniversalLink } from '@plone/volto/components';
2
+ import { defineMessages } from 'react-intl';
3
+
4
+ const messages = defineMessages({
5
+ url: {
6
+ id: 'url',
7
+ defaultMessage: 'Sito web',
8
+ },
9
+ account: {
10
+ id: 'account',
11
+ defaultMessage: 'Account',
12
+ },
13
+ linkedin: {
14
+ id: 'linkedin',
15
+ defaultMessage: 'LinkedIn',
16
+ },
17
+ twitter: {
18
+ id: 'twitter',
19
+ defaultMessage: 'Twitter',
20
+ },
21
+ telefono: {
22
+ id: 'telefono',
23
+ defaultMessage: 'Numero di telefono',
24
+ },
25
+ email: {
26
+ id: 'email',
27
+ defaultMessage: 'Email',
28
+ },
29
+ pec: {
30
+ id: 'pec',
31
+ defaultMessage: 'PEC',
32
+ },
33
+ social: {
34
+ id: 'social',
35
+ defaultMessage: 'Social',
36
+ },
37
+ fax: {
38
+ id: 'fax',
39
+ defaultMessage: 'Fax',
40
+ },
41
+ whatsapp: {
42
+ id: 'whatsapp',
43
+ defaultMessage: 'Whatsapp',
44
+ },
45
+ telegram: {
46
+ id: 'telegram',
47
+ defaultMessage: 'Telegram',
48
+ },
49
+ skype: {
50
+ id: 'skype',
51
+ defaultMessage: 'Skype',
52
+ },
53
+ });
2
54
 
3
55
  export const contentFolderHasItems = (content, folder_name) => {
4
56
  const has_items =
@@ -7,14 +59,19 @@ export const contentFolderHasItems = (content, folder_name) => {
7
59
  return has_items;
8
60
  };
9
61
 
10
- export const renderPDCItemValue = (pdcValue) => {
62
+ export const renderPDCItemValue = (pdcValue, intl) => {
11
63
  switch (pdcValue?.pdc_type) {
12
64
  case 'url':
13
65
  case 'account':
14
66
  case 'linkedin':
15
67
  case 'twitter':
16
68
  return (
17
- <UniversalLink href={`${pdcValue?.pdc_value}`}>
69
+ <UniversalLink
70
+ href={`${pdcValue?.pdc_value}`}
71
+ aria-label={`${intl.formatMessage(messages[pdcValue.pdc_type])}: ${
72
+ pdcValue?.pdc_value ?? ''
73
+ }`}
74
+ >
18
75
  {pdcValue?.pdc_value}
19
76
  </UniversalLink>
20
77
  );
@@ -24,6 +81,9 @@ export const renderPDCItemValue = (pdcValue) => {
24
81
  href={`tel:${pdcValue?.pdc_value}`}
25
82
  target="_blank"
26
83
  rel="noopener noreferrer"
84
+ aria-label={`${intl.formatMessage(messages[pdcValue.pdc_type])}: ${
85
+ pdcValue?.pdc_value ?? ''
86
+ }`}
27
87
  >
28
88
  {pdcValue?.pdc_value}
29
89
  </a>
@@ -34,6 +94,9 @@ export const renderPDCItemValue = (pdcValue) => {
34
94
  href={`https://wa.me/${pdcValue?.pdc_value.replace(/\D/g, '')}`}
35
95
  target="_blank"
36
96
  rel="noopener noreferrer"
97
+ aria-label={`${intl.formatMessage(messages[pdcValue.pdc_type])}: ${
98
+ pdcValue?.pdc_value ?? ''
99
+ }`}
37
100
  >
38
101
  {pdcValue?.pdc_value}
39
102
  </a>
@@ -45,6 +108,9 @@ export const renderPDCItemValue = (pdcValue) => {
45
108
  href={`https://t.me/${pdcValue?.pdc_value}`}
46
109
  target="_blank"
47
110
  rel="noopener noreferrer"
111
+ aria-label={`${intl.formatMessage(messages[pdcValue.pdc_type])}: ${
112
+ pdcValue?.pdc_value ?? ''
113
+ }`}
48
114
  >
49
115
  {pdcValue?.pdc_value}
50
116
  </a>
@@ -58,6 +124,9 @@ export const renderPDCItemValue = (pdcValue) => {
58
124
  href={`skype:${pdcValue?.pdc_value}?call`}
59
125
  target="_blank"
60
126
  rel="noopener noreferrer"
127
+ aria-label={`${intl.formatMessage(messages[pdcValue.pdc_type])}: ${
128
+ pdcValue?.pdc_value ?? ''
129
+ }`}
61
130
  >
62
131
  {pdcValue?.pdc_value}
63
132
  </a>
@@ -69,6 +138,9 @@ export const renderPDCItemValue = (pdcValue) => {
69
138
  href={`mailto:${pdcValue?.pdc_value}`}
70
139
  target="_blank"
71
140
  rel="noopener noreferrer"
141
+ aria-label={`${intl.formatMessage(messages[pdcValue.pdc_type])}: ${
142
+ pdcValue?.pdc_value ?? ''
143
+ }`}
72
144
  >
73
145
  {pdcValue?.pdc_value}
74
146
  </a>
@@ -8,9 +8,11 @@
8
8
  ul {
9
9
  li {
10
10
  a.list-item,
11
+ a.list-item a,
11
12
  button.btn-link {
12
13
  display: flex;
13
14
  align-items: center;
15
+ font-size: var(--bs-dropdown-font-size);
14
16
 
15
17
  .icon {
16
18
  width: 28px;
@@ -10,7 +10,8 @@
10
10
  .bg-primary {
11
11
  .card .card-body {
12
12
  .categoryicon-top {
13
- span {
13
+ .text,
14
+ .data {
14
15
  color: $subsite-primary-text;
15
16
  }
16
17
 
@@ -38,6 +39,7 @@
38
39
 
39
40
  .chip.chip-primary {
40
41
  border-color: $subsite-primary-text;
42
+
41
43
  & > .chip-label {
42
44
  color: $subsite-primary-text;
43
45
  }
@@ -55,7 +57,8 @@
55
57
  .bg-secondary {
56
58
  .card .card-body {
57
59
  .categoryicon-top {
58
- .text {
60
+ .text,
61
+ .data {
59
62
  color: $subsite-secondary-text;
60
63
  }
61
64
 
@@ -83,13 +86,16 @@
83
86
 
84
87
  .chip.chip-primary {
85
88
  border-color: $subsite-secondary-text;
89
+
86
90
  > .chip-label {
87
91
  color: $subsite-secondary-text;
88
92
  }
93
+
89
94
  &:hover,
90
95
  &:active {
91
96
  border-color: $subsite-secondary;
92
97
  background-color: $subsite-secondary-text;
98
+
93
99
  > .chip-label {
94
100
  color: $subsite-secondary;
95
101
  }
@@ -14,6 +14,7 @@
14
14
  ) {
15
15
  .btn-tertiary {
16
16
  @include button-variant($subsite-tertiary, $subsite-tertiary-text);
17
+ color: $subsite-tertiary-text !important;
17
18
 
18
19
  svg {
19
20
  fill: $subsite-tertiary-text;
@@ -56,6 +57,7 @@
56
57
  .text-primary {
57
58
  color: $subsite-primary-text !important;
58
59
  }
60
+
59
61
  .select-pill.text-primary {
60
62
  @if ($subsite-light-theme) {
61
63
  color: $subsite-link-color !important;
@@ -319,8 +321,8 @@
319
321
  }
320
322
 
321
323
  td.CalendarDay__hovered_span {
322
- background: $subsite-primary-a0;
323
324
  border: $subsite-primary-a0;
325
+ background: $subsite-primary-a0;
324
326
  color: $subsite-link-color;
325
327
  }
326
328