Skip to content

Commit

Permalink
Update icons work-around for compatibility with blacklight 7.39 (whic…
Browse files Browse the repository at this point in the history
…h backported the 7.38 fix.)
  • Loading branch information
cbeer committed Sep 27, 2024
1 parent 0ccdb48 commit ddccd53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/components/spotlight/icon_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
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)
if Blacklight.version < '7.39'
# Work around https://github.com/projectblacklight/blacklight/issues/3232 (fixed in Blacklight 7.39)
def classes
(@classes - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
((@classes || super if defined?(super) || []) - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
end
end
end
Expand Down

0 comments on commit ddccd53

Please sign in to comment.