fix specs with good aria attributes for tabs
This commit is contained in:
parent
75867df013
commit
d403f851c6
11 changed files with 12 additions and 12 deletions
|
@ -3,7 +3,7 @@
|
|||
%h1.page-title Prévisualisation de la démarche « #{@dossier.procedure.libelle} »
|
||||
|
||||
%nav.fr-tabs
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= tab_item('le dossier',
|
||||
apercu_admin_procedure_path(@dossier.procedure, tab: 'dossier'),
|
||||
active: @tab == 'dossier')
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
.fr-container
|
||||
|
||||
%nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= 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(t('pluralize.closed', count: @procedures_closed_count), admin_procedures_path(statut: 'archivees'), active: @statut == 'archivees', badge: number_with_html_delimiter(@procedures_closed_count))
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
ZIP
|
||||
|
||||
%nav.fr-tabs
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= dynamic_tab_item('Demande', expert_avis_path(avis.procedure, avis))
|
||||
= dynamic_tab_item('Avis', instruction_expert_avis_path(avis.procedure, avis), notification: avis.answer.blank?)
|
||||
- if avis.procedure.allow_expert_messaging
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
%h1.fr-h3= procedure_libelle @procedure
|
||||
|
||||
%nav.fr-tabs
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= tab_item('avis à donner',
|
||||
procedure_expert_avis_index_path(statut: Instructeurs::AvisController::A_DONNER_STATUS),
|
||||
active: @statut == Instructeurs::AvisController::A_DONNER_STATUS,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#header-bottom.fr-container
|
||||
%nav.fr-tabs
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
- notifications_summary = current_instructeur.notifications_for_dossier(dossier)
|
||||
|
||||
= dynamic_tab_item(t('views.instructeurs.dossiers.tab_steps.request'),
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%nav.fr-tabs.mt-3
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= tab_item(t(tab_i18n_key_from_status('a-suivre')),
|
||||
instructeur_procedure_path(procedure, statut: 'a-suivre'),
|
||||
active: statut == 'a-suivre',
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
= render partial: 'instructeurs/procedures/synthese', locals: { procedures: @procedures, all_dossiers_counts: @all_dossiers_counts }
|
||||
|
||||
%nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= tab_item(t('pluralize.en_cours', count: @procedures_en_cours_count), instructeur_procedures_path(statut: 'en-cours'), active: @statut == 'en-cours', badge: number_with_html_delimiter(@procedures_en_cours_count))
|
||||
= tab_item(t('pluralize.en_test', count: @procedures_draft_count), instructeur_procedures_path(statut: 'brouillons'), active: @statut == 'brouillons', badge: number_with_html_delimiter(@procedures_draft_count))
|
||||
= tab_item(t('pluralize.closed', count: @procedures_closes_count), instructeur_procedures_path(statut: 'archivees'), active: @statut == 'archivees', badge: number_with_html_delimiter(@procedures_closes_count))
|
||||
|
|
|
@ -232,7 +232,7 @@
|
|||
.container
|
||||
Titre
|
||||
%nav.fr-tabs
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= tab_item("Onglet actif", "#", active: true)
|
||||
= tab_item("Onglet inactif", "#")
|
||||
= tab_item("Onglet avec badge", "#", badge: 2)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%li{ class: (active ? 'active' : nil) }
|
||||
%li{ class: (active ? 'active' : nil), role: 'presentation' }
|
||||
- if notification
|
||||
%span.notifications{ 'aria-label': 'notifications' }
|
||||
= link_to(url, 'aria-selected': active ? true : nil, class: 'fr-tabs__tab' ) do
|
||||
= link_to(url, 'aria-selected': active ? true : nil, class: 'fr-tabs__tab', role: 'tab' ) do
|
||||
- if badge.present?
|
||||
%span.badge.fr-mr-1w= badge
|
||||
= label
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
- if @search_terms.blank?
|
||||
%nav.fr-tabs{ role: 'navigation', 'aria-label': t('views.users.dossiers.secondary_menu') }
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
- if @user_dossiers.present?
|
||||
= tab_item(t('pluralize.en_cours', count: @user_dossiers.count),
|
||||
dossiers_path(statut: 'en-cours', procedure_id: params[:procedure_id]),
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
= render(partial: 'users/dossiers/show/print_dossier', locals: { dossier: dossier })
|
||||
|
||||
%nav.fr-tabs
|
||||
%ul.fr-tabs__list
|
||||
%ul.fr-tabs__list{ role: 'tablist' }
|
||||
= dynamic_tab_item(t('views.users.dossiers.show.header.summary'), dossier_path(dossier))
|
||||
= dynamic_tab_item(t('views.users.dossiers.show.header.request'), [demande_dossier_path(dossier), modifier_dossier_path(dossier)])
|
||||
= dynamic_tab_item(t('views.users.dossiers.show.header.mailbox'), messagerie_dossier_path(dossier))
|
||||
|
|
Loading…
Reference in a new issue