Class: Spotlight::IconComponent

Inherits:
Blacklight::Icons::IconComponent
  • Object
show all
Defined in:
app/components/spotlight/icon_component.rb

Overview

Displays the document

Instance Method Summary collapse

Instance Method Details

#classesObject

Work around github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight 7.39)



8
9
10
# File 'app/components/spotlight/icon_component.rb', line 8

def classes
  ((@classes || (super if defined?(super)) || []) - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
end