Skip to content

Commit

Permalink
Prepend icon titles so they take priority over anything already embed…
Browse files Browse the repository at this point in the history
…ded in the SVG
  • Loading branch information
cbeer committed Jun 18, 2020
1 parent 49f5539 commit 1feabd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/blacklight/icon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def svg
svg = ng_xml.at_xpath('svg')
svg['role'] = role
svg['aria-labelledby'] = unique_id if label
svg.add_child("<title id='#{unique_id}'>#{icon_label}</title>") if label
svg.prepend_child("<title id='#{unique_id}'>#{icon_label}</title>") if label
ng_xml.to_xml
end

Expand Down

0 comments on commit 1feabd2

Please sign in to comment.