Replace span by div & tab-index by tabindex
This commit is contained in:
parent
1b188f65b0
commit
a1abaa4ac2
2 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
%button{ class: button_class_names, id: button_id, disabled: disabled?, data: data, "aria-expanded": "false", 'aria-haspopup': 'true', 'aria-controls': menu_id }
|
||||
= button_inner_html
|
||||
|
||||
%div{ data: { menu_button_target: 'menu' }, id: menu_id, 'aria-labelledby': button_id, role: menu_role, 'tab-index': -1, class: menu_class_names }
|
||||
%div{ data: { menu_button_target: 'menu' }, id: menu_id, 'aria-labelledby': button_id, role: menu_role, 'tabindex': -1, class: menu_class_names }
|
||||
= menu_header_html
|
||||
|
||||
-# the dropdown can be a menu with a list of item
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- invites = dossier.invites.load
|
||||
= render Dropdown::MenuComponent.new(wrapper: :span, wrapper_options: {class: 'invite-user-action'}, button_options: { class: ['fr-btn--secondary'] }, menu_options: { id: 'invite-content' }) do |menu|
|
||||
= render Dropdown::MenuComponent.new(wrapper: :div, wrapper_options: {class: 'invite-user-action'}, button_options: { class: ['fr-btn--secondary'] }, menu_options: { id: 'invite-content' }) do |menu|
|
||||
= 'lab'
|
||||
- menu.with_button_inner_html do
|
||||
= dsfr_icon('fr-icon-user-add-fill', :sm, :mr)
|
||||
- if invites.present?
|
||||
|
|
Loading…
Reference in a new issue