diff --git a/RELEASE.md b/RELEASE.md index d25672645..7c0788735 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -59,6 +59,14 @@ - Modificata l'altezza delle immagini delle card, per essere in linea con i template agid. ## Versione 11.1.4 (dd/mm/yyyy) +## Versione x.x.x (dd/mm/yyyy) + +### Fix + +- Diminuita la larghezza del testo nelle card che indicano i luoghi. +- Risolto un problema nel blocco Video Gallery, per cui alcuni video di youtube non erano riproducibili. + +## Versione 11.1.4 (05/01/2024) ### Fix diff --git a/package.json b/package.json index 4c5c3cf8c..3f1ce587a 100644 --- a/package.json +++ b/package.json @@ -131,8 +131,8 @@ "htmldiff-js": "1.0.5", "marked": "9.0.0", "react-dropzone": "11.0.1", + "react-focus-lock": "2.9.4", "react-google-recaptcha-v3": "1.7.0", - "react-highlight-words": "0.18.0", "react-select": "^4.3.1", "react-slick": "^0.29.0", "slick-carousel": "1.8.1", diff --git a/src/components/Collapse.jsx b/src/components/Collapse.jsx index 86f21de0d..8cc62180b 100644 --- a/src/components/Collapse.jsx +++ b/src/components/Collapse.jsx @@ -39,10 +39,10 @@ const Collapse = ({ children, isOpen, onOverlayClick, + showCloseButton = true, // deprecato da v12.0.0 ...attributes }) => { const intl = useIntl(); - if (navbar && header) { const classes = classNames(className, 'navbar-collapse', { expanded: isOpen, @@ -59,17 +59,23 @@ const Collapse = ({ className="overlay" style={{ display: isOpen ? 'block' : 'none' }} onClick={onOverlayClick} + onKeyDown={() => {}} > -
- -
+ {/* Deprecato - non viene più utilizzato da v12.0.0 per ragioni di accessibilità + Close button ora presente in Navigation.jsx + */} + {showCloseButton && ( +
+ +
+ )} {children} ); diff --git a/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx b/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx index 7a17726ac..e55aede9d 100644 --- a/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx +++ b/src/components/ItaliaTheme/MegaMenu/MegaMenu.jsx @@ -112,13 +112,14 @@ const MegaMenu = ({ item, pathname }) => { if (item.mode === 'simpleLink') { return item.linkUrl?.length > 0 ? ( - + {isItemActive && ( @@ -238,7 +239,7 @@ const MegaMenu = ({ item, pathname }) => { } return ( - + { } }} title={intl.formatMessage(messages.closeMenu)} + // APG spec: on Tab menu closes, so remove it from focusable elements + // https://www.w3.org/WAI/ARIA/apg/patterns/menubar/examples/menubar-navigation/ + tabIndex="-1" > @@ -278,10 +282,14 @@ const MegaMenu = ({ item, pathname }) => { {childrenGroups.map((group, index) => ( - + {group.map((child, idx) => { return ( -
  • +
  • {child.showAsHeader ? (

    { key={child['@id']} onClick={() => setMenuStatus(false)} role="menuitem" + aria-current="page" > {child.title} @@ -362,12 +371,13 @@ const MegaMenu = ({ item, pathname }) => { - -
  • + +
  • setMenuStatus(false)} + role="menuitem" > {item.showMoreText?.length > 0 diff --git a/src/components/ItaliaTheme/MenuSecondary/MenuSecondary.jsx b/src/components/ItaliaTheme/MenuSecondary/MenuSecondary.jsx index 4dfd91056..c596d944d 100644 --- a/src/components/ItaliaTheme/MenuSecondary/MenuSecondary.jsx +++ b/src/components/ItaliaTheme/MenuSecondary/MenuSecondary.jsx @@ -44,17 +44,18 @@ const MenuSecondary = ({ pathname }) => { return ( items?.length > 0 && ( -