Skip to content

Commit

Permalink
fix: translated aria-label of menu hamburger icon
Browse files Browse the repository at this point in the history
  • Loading branch information
sabrina-bongiovanni committed Mar 15, 2024
1 parent 80a6586 commit ecb42d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
- ...
-->

## Versione X.X.X (dd/mm/yyyy)

### Fix

- Tradotto il messaggio per Screen Reader del bottone per aprire e chiudere il menu in mobile.

## Versione 11.7.0 (15/03/2024)

### Novità
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const Navigation = ({ pathname }) => {
<HeaderToggler
aria-controls="it-navigation-collapse"
aria-expanded={collapseOpen}
aria-label="Toggle navigation"
aria-label={intl.formatMessage(messages.ToggleMenu)}
onClick={() => {
setCollapseOpen(!collapseOpen);
setFocusTrapActive(!focusTrapActive);
Expand Down Expand Up @@ -177,6 +177,10 @@ const messages = defineMessages({
id: 'close-menu',
defaultMessage: 'Chiudi menu',
},
ToggleMenu: {
id: 'toggle-menu',
defaultMessage: 'Apri o chiudi il menu',
},
});

Navigation.propTypes = {
Expand Down

0 comments on commit ecb42d9

Please sign in to comment.