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 8.0)



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

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