font-awesome-rails icon indicating copy to clipboard operation
font-awesome-rails copied to clipboard

Request aria-hidden="true"

Open AxelBriche opened this issue 3 years ago • 2 comments

Can you please add aria-hidden="true" by default on tag when a text is provided for accessibility or add a configuration for add aria-hidden by default?

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-hidden_attribute

AxelBriche avatar Feb 16 '21 09:02 AxelBriche

This would be great! We end up adding it manually to all of our icons.

mockdeep avatar Jan 30 '22 18:01 mockdeep

A PR for this would be much appreciated.

I think aria-hidden=true as the default would be fine as long as an option of hidden: false can also be passed to fa_icon to disable this new default attribute. i.e. I can imagine a scenario where voicing shouldn't be suppressed for some uses of an icon.

rmm5t avatar Jan 31 '22 02:01 rmm5t