From c92060ae588684618675438a09ee00fd699f508b Mon Sep 17 00:00:00 2001 From: Sabrina Bongiovanni Date: Mon, 18 Mar 2024 10:08:07 +0100 Subject: [PATCH] fix: used collapseOpen variable to change aria-label message --- .../volto/components/theme/Navigation/Navigation.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/customizations/volto/components/theme/Navigation/Navigation.jsx b/src/customizations/volto/components/theme/Navigation/Navigation.jsx index f6db59c76..678d69471 100644 --- a/src/customizations/volto/components/theme/Navigation/Navigation.jsx +++ b/src/customizations/volto/components/theme/Navigation/Navigation.jsx @@ -100,7 +100,9 @@ const Navigation = ({ pathname }) => { { setCollapseOpen(!collapseOpen); setFocusTrapActive(!focusTrapActive); @@ -179,7 +181,7 @@ const messages = defineMessages({ }, ToggleMenu: { id: 'toggle-menu', - defaultMessage: 'Apri o chiudi il menu', + defaultMessage: '{action} il menu', }, });