Sha256: e051b447beaaa87459bb1f3802bd521cc76261fc28432017918b612d9365b9b3

Contents?: true

Size: 436 Bytes

Versions: 18

Compression:

Stored size: 436 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
blacklight-spotlight-5.0.0.pre.alpha3 app/components/spotlight/icon_component.rb
blacklight-spotlight-5.0.0.pre.alpha2 app/components/spotlight/icon_component.rb
blacklight-spotlight-5.0.0.pre.alpha1 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.7.1 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.7.0 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.6.1 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.6.0 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.5.0 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.4.0 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.6 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.5 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.4 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.3 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.2 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.1 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.3.0 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.2.0 app/components/spotlight/icon_component.rb
blacklight-spotlight-4.1.2 app/components/spotlight/icon_component.rb