Place the menu in the <nav> tag in desktop version
This commit is contained in:
parent
06b8194359
commit
31bf30830d
2 changed files with 64 additions and 63 deletions
|
@ -8,6 +8,7 @@
|
|||
- is_user_context = nav_bar_profile == :user
|
||||
- is_search_enabled = [params[:controller] == 'recherche', is_instructeur_context, is_expert_context, is_user_context && current_user.dossiers.count].any?
|
||||
%header{ class: ["fr-header", content_for?(:notice_info) && "fr-header__with-notice-info"], role: "banner", "data-controller": "dsfr-header" }
|
||||
%nav{ :role => "navigation", "aria-label" => t('layouts.header.main_menu') }
|
||||
.fr-header__body
|
||||
.fr-container
|
||||
.fr-header__body-row
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%nav.fr-translate.fr-nav{ :role => "navigation", title: t('.select_locale') }
|
||||
.fr-translate.fr-nav
|
||||
.fr-nav__item
|
||||
%button.fr-translate__btn.fr-btn{ "aria-controls" => "translate", "aria-expanded" => "false", :title => t('.select_locale') }
|
||||
= I18n.locale.upcase
|
||||
|
|
Loading…
Reference in a new issue