From c128e47a562240228b3e3517261a49f3774f9215 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 29 Sep 2024 19:19:53 +0000 Subject: Drops icon-error and style the error icon from CSS (#23980). git-svn-id: https://svn.redmine.org/redmine/trunk@23092 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/icons_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/helpers/icons_helper.rb') diff --git a/app/helpers/icons_helper.rb b/app/helpers/icons_helper.rb index 7ba87063b..e297d950b 100644 --- a/app/helpers/icons_helper.rb +++ b/app/helpers/icons_helper.rb @@ -57,11 +57,13 @@ module IconsHelper def sprite_icon(icon_name, size: DEFAULT_ICON_SIZE, sprite: DEFAULT_SPRITE, css_class: nil) sprite_path = "#{sprite}.svg" + css_classes = "s#{size} icon-svg" + css_classes += " #{css_class}" unless css_class.nil? content_tag( :svg, content_tag(:use, '', { 'href' => "#{asset_path(sprite_path)}#icon--#{icon_name}" }), - class: "s#{size} icon-svg", + class: css_classes, aria: { hidden: true } -- cgit v1.2.3