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'
|
= link_to "Nouvelle Démarche", new_from_existing_admin_procedures_path, id: 'new-procedure', class: 'fr-btn'
|
||||||
.fr-container
|
.fr-container
|
||||||
|
|
||||||
%nav.tabs
|
%nav.tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||||
%ul
|
%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(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))
|
= 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
|
.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])
|
%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
|
= 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'
|
= 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"
|
= text_field_tag "q", "#{@search_terms if @search_terms.present?}", placeholder: t('views.users.dossiers.search.search_file'), class: "fr-input"
|
||||||
%button.fr-btn{ title: t('views.users.dossiers.search.search_file') }
|
%button.fr-btn
|
||||||
= t('views.users.dossiers.search.search_file')
|
= t('views.users.dossiers.search.simple')
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
- else
|
- else
|
||||||
%h1.page-title= t('views.users.dossiers.index.dossiers')
|
%h1.page-title= t('views.users.dossiers.index.dossiers')
|
||||||
%nav.tabs
|
%nav.tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||||
%ul
|
%ul
|
||||||
- if @user_dossiers.present?
|
- if @user_dossiers.present?
|
||||||
= tab_item(t('pluralize.en_cours', count: @user_dossiers.count),
|
= tab_item(t('pluralize.en_cours', count: @user_dossiers.count),
|
||||||
|
|
|
@ -317,8 +317,9 @@ en:
|
||||||
demande:
|
demande:
|
||||||
edit_dossier: "Edit file"
|
edit_dossier: "Edit file"
|
||||||
search:
|
search:
|
||||||
placeholder: Search a file
|
search_file: Search a file
|
||||||
search_file: Search
|
simple: Search
|
||||||
|
secondary_menu: Secondary menu
|
||||||
index:
|
index:
|
||||||
dossiers: "Files"
|
dossiers: "Files"
|
||||||
dossiers_list:
|
dossiers_list:
|
||||||
|
|
|
@ -313,8 +313,9 @@ fr:
|
||||||
demande:
|
demande:
|
||||||
edit_dossier: "Modifier le dossier"
|
edit_dossier: "Modifier le dossier"
|
||||||
search:
|
search:
|
||||||
placeholder: Rechercher un dossier
|
search_file: Rechercher un dossier
|
||||||
search_file: Rechercher
|
simple: Rechercher
|
||||||
|
secondary_menu: Menu secondaire
|
||||||
index:
|
index:
|
||||||
dossiers: "Dossiers"
|
dossiers: "Dossiers"
|
||||||
dossiers_list:
|
dossiers_list:
|
||||||
|
|
Loading…
Reference in a new issue