Merge pull request #8564 from demarches-simplifiees/a11y-8225-navigation
a11y : optimization navigation accessibility
This commit is contained in:
commit
7a95963165
5 changed files with 13 additions and 11 deletions
|
@ -5,7 +5,7 @@
|
|||
= link_to "Nouvelle Démarche", new_from_existing_admin_procedures_path, id: 'new-procedure', class: 'fr-btn'
|
||||
.fr-container
|
||||
|
||||
%nav.tabs
|
||||
%nav.tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||
%ul
|
||||
= tab_item(t('pluralize.published', count: @procedures_publiees.count), admin_procedures_path(statut: 'publiees'), active: @statut == 'publiees', badge: number_with_html_delimiter(@procedures_publiees_count))
|
||||
= tab_item('En test', admin_procedures_path(statut: 'brouillons'), active: @statut == 'brouillons', badge: number_with_html_delimiter(@procedures_draft_count))
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
#search-modal.fr-header__search.fr-modal
|
||||
#search-modal.fr-header__search.fr-modal{ "aria-label": t('views.users.dossiers.search.search_file') }
|
||||
.fr-container.fr-container-lg--fluid
|
||||
%button.fr-btn--close.fr-btn{ "aria-controls" => "search-modal", :title => t('close_modal', scope: [:layouts, :header]) }= t('close_modal', scope: [:layouts, :header])
|
||||
#search-473.fr-search-bar
|
||||
#search-473.fr-search-bar.fr-search-bar--lg
|
||||
= form_tag "#{search_endpoint}", method: :get, :role => "search", class: "flex width-100" do
|
||||
= label_tag "q", t('views.users.dossiers.search.search_file'), class: 'fr-label'
|
||||
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.placeholder'), class: "fr-input"
|
||||
%button.fr-btn{ title: t('views.users.dossiers.search.search_file') }
|
||||
= t('views.users.dossiers.search.search_file')
|
||||
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.search_file'), class: "fr-input"
|
||||
%button.fr-btn
|
||||
= t('views.users.dossiers.search.simple')
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
- else
|
||||
%h1.page-title= t('views.users.dossiers.index.dossiers')
|
||||
%nav.tabs
|
||||
%nav.tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||
%ul
|
||||
- if @user_dossiers.present?
|
||||
= tab_item(t('pluralize.en_cours', count: @user_dossiers.count),
|
||||
|
|
|
@ -317,8 +317,9 @@ en:
|
|||
demande:
|
||||
edit_dossier: "Edit file"
|
||||
search:
|
||||
placeholder: Search a file
|
||||
search_file: Search
|
||||
search_file: Search a file
|
||||
simple: Search
|
||||
secondary_menu: Secondary menu
|
||||
index:
|
||||
dossiers: "Files"
|
||||
dossiers_list:
|
||||
|
|
|
@ -313,8 +313,9 @@ fr:
|
|||
demande:
|
||||
edit_dossier: "Modifier le dossier"
|
||||
search:
|
||||
placeholder: Rechercher un dossier
|
||||
search_file: Rechercher
|
||||
search_file: Rechercher un dossier
|
||||
simple: Rechercher
|
||||
secondary_menu: Menu secondaire
|
||||
index:
|
||||
dossiers: "Dossiers"
|
||||
dossiers_list:
|
||||
|
|
Loading…
Reference in a new issue