Merge pull request #8565 from demarches-simplifiees/a11y-8204-burger-menu

optimization burger menu
This commit is contained in:
Julie Salha 2023-02-02 17:17:02 +01:00 committed by GitHub
commit 0f6203190f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -72,7 +72,7 @@
= render partial: 'layouts/search_dossiers_form', locals: { search_endpoint: recherche_dossiers_path }
- has_header = [is_instructeur_context, is_expert_context, is_user_context]
#burger-menu.fr-header__menu.fr-modal{ "aria-labelledby" => "burger_button" }
#burger-menu.fr-header__menu.fr-modal{ "aria-label" => t('layouts.header.label_modal') }
.fr-container
%button#burger_button.fr-btn--close.fr-btn{ "aria-controls" => "burger-menu", :title => t('close_modal', scope: [:layouts, :header]) }= t('close_modal', scope: [:layouts, :header])
.fr-header__menu-links

View file

@ -68,6 +68,7 @@ en:
are_you_new: First time on %{app_name}?
my_account: My account
header:
label_modal: "Burger menu"
close_modal: 'Close'
back: "Back"
back_title: "Revenir sur le site de mon administration"

View file

@ -59,6 +59,7 @@ fr:
are_you_new: Vous êtes nouveau sur %{app_name} ?
my_account: Mon compte
header:
label_modal: "Menu en-tête de page"
close_modal: 'Fermer'
back: "Revenir en arrière"
back_title: "Revenir sur le site de mon administration"