Skip to content

Commit

Permalink
Merge pull request #124 from panyamin/patch-1
Browse files Browse the repository at this point in the history
Added Aria recommendation
  • Loading branch information
supercodepoet committed Mar 9, 2022
2 parents 2ae124c + a31b890 commit 7c6e9c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/font_awesome/sass/rails/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ def icon(style, name, text = nil, html_options = {})
content_class = "#{style} fa-#{name}"
content_class << " #{html_options[:class]}" if html_options.key?(:class)
html_options[:class] = content_class
html_options['aria-hidden'] ||= true

html = content_tag(:i, nil, html_options)
html << ' ' << text.to_s unless text.blank?
Expand Down

0 comments on commit 7c6e9c3

Please sign in to comment.