summaryrefslogtreecommitdiffstats
path: root/app/helpers/icons_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/icons_helper.rb')
-rw-r--r--app/helpers/icons_helper.rb4
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
}