From 2d2a38a40a34627fe85a3983a52bcd57dcd7424a Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Thu, 3 Apr 2025 17:56:55 -0500 Subject: [PATCH] Fix image icons --- app/assets/stylesheets/icons.css | 4 ++++ app/helpers/translations_helper.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/icons.css b/app/assets/stylesheets/icons.css index ce461626f..a07e8d574 100644 --- a/app/assets/stylesheets/icons.css +++ b/app/assets/stylesheets/icons.css @@ -12,6 +12,10 @@ user-select: none; } +img.icon { + background: none; +} + .icon--activity { --svg: url("activity.svg "); } .icon--add { --svg: url("add.svg "); } .icon--alert { --svg: url("alert.svg "); } diff --git a/app/helpers/translations_helper.rb b/app/helpers/translations_helper.rb index 57107b8f5..5f6ae4223 100644 --- a/app/helpers/translations_helper.rb +++ b/app/helpers/translations_helper.rb @@ -18,7 +18,7 @@ module TranslationsHelper def translation_button(translation_key) tag.div(class: "position-relative", data: { controller: "popover", action: "keydown.esc->popover#close click@document->popover#closeOnClickOutside", popover_orientation_top_class: "popover-orientation-top" }) do tag.button(type: "button", class: "btn", tabindex: -1, data: { action: "popover#toggle" }) do - concat image_tag("globe.svg", size: 20, role: "presentation") + concat image_tag("globe.svg", class: "icon", role: "presentation") concat tag.span("Translate", class: "for-screen-reader") end + tag.dialog(class: "lanuage-list-menu popover shadow", data: { popover_target: "menu" }) do