fix(a11y): manu buttons should have unique ids
This commit is contained in:
parent
ad0e57a372
commit
9867bc3947
4 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
||||||
= t(".download_all")
|
= t(".download_all")
|
||||||
- else
|
- else
|
||||||
= t(".download", count: @count)
|
= t(".download", count: @count)
|
||||||
#download-menu.dropdown-content.fade-in-down{ style: 'width: 450px', data: { menu_button_target: 'menu' } }
|
.dropdown-content.fade-in-down{ style: 'width: 450px', data: { menu_button_target: 'menu' }, id: @count.nil? ? "download_menu" : "download_all_menu" }
|
||||||
%ul.dropdown-items{ 'data-turbo': 'true' }
|
%ul.dropdown-items{ 'data-turbo': 'true' }
|
||||||
- exports.each do |item|
|
- exports.each do |item|
|
||||||
- export = item[:export]
|
- export = item[:export]
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
.dropdown{ data: { controller: 'menu-button' } }
|
.dropdown{ data: { controller: 'menu-button' } }
|
||||||
%button.button.dropdown-button.procedures-actions-btn{ data: { menu_button_target: 'button' } }
|
%button.button.dropdown-button.procedures-actions-btn{ data: { menu_button_target: 'button' } }
|
||||||
Actions
|
Actions
|
||||||
#actions-menu.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' } }
|
.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' }, id: dom_id(procedure, :actions_menu) }
|
||||||
%ul.dropdown-items.pl-0
|
%ul.dropdown-items.pl-0
|
||||||
- if !procedure.close? && !procedure.discarded?
|
- if !procedure.close? && !procedure.discarded?
|
||||||
%li
|
%li
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
.dropdown.user-dossier-actions{ data: { controller: 'menu-button' } }
|
.dropdown.user-dossier-actions{ data: { controller: 'menu-button' } }
|
||||||
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
||||||
Actions
|
Actions
|
||||||
#actions-menu.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' } }
|
.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' }, id: "dossier_#{dossier_id}_actions_menu" }
|
||||||
%ul.dropdown-items
|
%ul.dropdown-items
|
||||||
- if close_to_expiration
|
- if close_to_expiration
|
||||||
%li
|
%li
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
.dropdown.user-dossier-actions{ data: { controller: 'menu-button' } }
|
.dropdown.user-dossier-actions{ data: { controller: 'menu-button' } }
|
||||||
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
%button.button.dropdown-button{ data: { menu_button_target: 'button' } }
|
||||||
= t('views.users.dossiers.dossier_action.actions')
|
= t('views.users.dossiers.dossier_action.actions')
|
||||||
#actions-menu.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' } }
|
.dropdown-content.fade-in-down{ data: { menu_button_target: 'menu' }, id: dom_id(dossier, :actions_menu) }
|
||||||
%ul.dropdown-items
|
%ul.dropdown-items
|
||||||
- if has_edit_action
|
- if has_edit_action
|
||||||
- if dossier.brouillon?
|
- if dossier.brouillon?
|
||||||
|
|
Loading…
Add table
Reference in a new issue