Remove inappropriate aria-controls attribute

This commit is contained in:
Corinne Durrmeyer 2024-08-12 16:13:19 +02:00
parent 483076970c
commit 479ccb16c8
No known key found for this signature in database
GPG key ID: DDC049DDA35585B6

View file

@ -2,11 +2,11 @@
%ul.fr-nav__list %ul.fr-nav__list
- if params[:controller] == 'users/commencer' - if params[:controller] == 'users/commencer'
%li.fr-nav__item %li.fr-nav__item
= link_to t('back', scope: [:layouts, :header]), url_for(:back), title: t('back_title', scope: [:layouts, :header]), class: 'fr-nav__link', "aria-controls" => "modal-header__menu" = link_to t('back', scope: [:layouts, :header]), url_for(:back), title: t('back_title', scope: [:layouts, :header]), class: 'fr-nav__link'
%li.fr-nav__item %li.fr-nav__item
= link_to t('files', scope: [:layouts, :header]), dossiers_path, class: 'fr-nav__link', aria: { current: (controller_name == 'dossiers' && action_name != 'deleted_dossiers') ? 'true' : nil, controls: "modal-header__menu" } = link_to t('files', scope: [:layouts, :header]), dossiers_path, class: 'fr-nav__link', aria: { current: (controller_name == 'dossiers' && action_name != 'deleted_dossiers') ? 'true' : nil }
- if current_user.deleted_dossiers.present? - if current_user.deleted_dossiers.present?
%li.fr-nav__item %li.fr-nav__item
= link_to 'Historique des dossiers supprimés', deleted_dossiers_path(), class: 'fr-nav__link', aria: { current: action_name == 'deleted_dossiers' ? 'true' : nil, controls: "modal-header__menu" } = link_to 'Historique des dossiers supprimés', deleted_dossiers_path(), class: 'fr-nav__link', aria: { current: action_name == 'deleted_dossiers' ? 'true' : nil }