add aria-disclosure for all dropdown buttons
This commit is contained in:
parent
5158b73e86
commit
4b86586ca0
11 changed files with 26 additions and 26 deletions
|
@ -5,9 +5,9 @@
|
|||
|
||||
- if has_actions
|
||||
.dropdown.user-dossier-actions
|
||||
%button.button.dropdown-button
|
||||
%button.button.dropdown-button{ 'aria-expanded' => 'false', 'aria-controls' => 'actions-menu' }
|
||||
Actions
|
||||
.dropdown-content.fade-in-down
|
||||
#actions-menu.dropdown-content.fade-in-down
|
||||
%ul.dropdown-items
|
||||
- if !dossier.read_only?
|
||||
- if dossier.brouillon?
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
- if dossier.can_be_updated_by_user? && !current_page?(modifier_dossier_path(dossier))
|
||||
= link_to "Modifier mon dossier", modifier_dossier_path(dossier), class: 'button accepted edit-form', 'title'=> "Vous pouvez modifier votre dossier tant qu'il n'est passé en instruction"
|
||||
%span.dropdown.print-menu-opener
|
||||
%button.button.dropdown-button.icon-only{ title: 'imprimer', 'aria-label': 'imprimer' }
|
||||
%button.button.dropdown-button.icon-only{ title: 'imprimer', 'aria-label': 'imprimer', 'aria-expanded' => 'false', 'aria-controls' => 'print-menu' }
|
||||
%span.icon.printer
|
||||
%ul.print-menu.dropdown-content
|
||||
%ul#print-menu.print-menu.dropdown-content
|
||||
%li
|
||||
= link_to "Tout le dossier", dossier_path(dossier, format: :pdf), target: "_blank", rel: "noopener", class: "menu-item menu-link"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue