Skip to content

Commit

Permalink
Update icons work-around.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 27, 2024
1 parent 0ccdb48 commit 5d52115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/spotlight/icon_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ 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
((@classes || (super if super?) || []) - ['blacklight-icons-'] + ["blacklight-icons-#{name}"]).uniq
end
end
end
Expand Down

0 comments on commit 5d52115

Please sign in to comment.