diff --git a/backend/app/helpers/spree/admin/navigation_helper.rb b/backend/app/helpers/spree/admin/navigation_helper.rb index c34659e2d87..9b88c9029fa 100644 --- a/backend/app/helpers/spree/admin/navigation_helper.rb +++ b/backend/app/helpers/spree/admin/navigation_helper.rb @@ -128,7 +128,7 @@ def button(text, icon_name = nil, button_type = 'submit', options = {}) class_names = "button" if icon_name Spree::Deprecation.warn "Using icon_name arg is deprecated. Icons could not be visible in future versions.", caller - class_names.prepend "fa fa-#{icon_name} " + class_names = "fa fa-#{icon_name} #{class_names}" end button_tag(text, options.merge(type: button_type, class: class_names)) end