diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-29 19:19:53 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-09-29 19:19:53 +0000 |
commit | c128e47a562240228b3e3517261a49f3774f9215 (patch) | |
tree | 3408806eb34b1f4682260119923f5ab0bdb35e64 /app/helpers/icons_helper.rb | |
parent | 083b80e8eae185ae4a6d5a8d493ee8ccd8ec57a1 (diff) | |
download | redmine-c128e47a562240228b3e3517261a49f3774f9215.tar.gz redmine-c128e47a562240228b3e3517261a49f3774f9215.zip |
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
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r-- | app/helpers/icons_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 } |