fix(rgaa/html): locale dropdown with valid html
This commit is contained in:
parent
baf88f97e3
commit
4f8391bc7c
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,8 @@
|
|||
.dropdown.locale-dropdown.header-menu-opener{ data: { controller: 'menu-button' } }
|
||||
%button.button.dropdown-button.icon-only.header-menu-button{ title: t('.languages'), data: { menu_button_target: 'button' } }
|
||||
.hidden t('.languages')
|
||||
= image_tag "icons/translate-icon.svg", alt: t('.languages'), width: 24, height: 24, lazy: true, aria: { hidden: true }
|
||||
%span.hidden
|
||||
= t('.languages')
|
||||
= image_tag "icons/translate-icon.svg", alt: t('.languages'), width: 24, height: 24, loading: :lazy, aria: { hidden: true }
|
||||
%ul.header-menu.dropdown-content{ data: { menu_button_target: 'menu' } }
|
||||
%li
|
||||
= active_link_to save_locale_path(locale: :fr), method: :post, class: "menu-item menu-link", active: I18n.locale == :fr do
|
||||
|
|
Loading…
Reference in a new issue