Sha256: 5baf867bdfa9a28d3cdb4fb8068dd7ad921a62cea7cd37c62eca84e5cc109a1e

Contents?: true

Size: 396 Bytes

Versions: 2

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  # Displays the document
  class IconComponent < Blacklight::Icons::IconComponent
    if Blacklight.version < '8.0'
      # Work around https://github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight 8.0)
      def classes
        (@classes - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
blacklight-spotlight-4.1.1 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.1.0 app/components/spotlight/icon_component.rb