mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-06 13:01:28 -04:00
Marked icons to be ignored by screen readers
This commit is contained in:
1 parent
0a327cba67
commit
89072bdb74
1 file changed
+2
-2
@@ -10,7 +10,7 @@ module IconsHelper
|
||||
wheelbarrow cat spiderweb bug butterfly ladybird stones)
|
||||
rand_num = rand(1..icons.size)
|
||||
icon = icons[rand_num - 1]
|
||||
image_tag("icons/#{icon}.svg", class: 'img img-cute', alt: icon)
|
||||
image_tag("icons/#{icon}.svg", 'aria-hidden' => "true", class: 'img img-cute', alt: icon)
|
||||
end
|
||||
|
||||
def timeline_icon
|
||||
@@ -113,6 +113,6 @@ module IconsHelper
|
||||
end
|
||||
|
||||
def image_icon(icon)
|
||||
image_tag "icons/#{icon}.svg", class: 'img img-icon'
|
||||
image_tag "icons/#{icon}.svg", class: 'img img-icon', 'aria-hidden' => "true"
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user