diff --git a/app/assets/stylesheets/new_header.scss b/app/assets/stylesheets/new_header.scss index f3613af3f..9f87af792 100644 --- a/app/assets/stylesheets/new_header.scss +++ b/app/assets/stylesheets/new_header.scss @@ -234,6 +234,10 @@ $header-mobile-breakpoint: 550px; display: flex; color: $black; + &.active { + font-weight: bold; + } + &:hover { background: $light-grey; } diff --git a/app/views/layouts/_locale_dropdown.html.haml b/app/views/layouts/_locale_dropdown.html.haml index 90d08168a..40f8d8a95 100644 --- a/app/views/layouts/_locale_dropdown.html.haml +++ b/app/views/layouts/_locale_dropdown.html.haml @@ -4,8 +4,8 @@ = image_tag "icons/translate-icon.svg", alt: t('.languages'), width: 24, height: 24, lazy: true, aria: { hidden: true } %ul.header-menu.dropdown-content %li - = link_to save_locale_path(locale: :en), method: :post, class: "menu-item menu-link" do + = active_link_to save_locale_path(locale: :en), method: :post, class: "menu-item menu-link", active: I18n.locale == :en do English %li - = link_to save_locale_path(locale: :fr), method: :post, class: "menu-item menu-link" do + = active_link_to save_locale_path(locale: :fr), method: :post, class: "menu-item menu-link", active: I18n.locale == :fr do Français