MaterialDesign-React icon indicating copy to clipboard operation
MaterialDesign-React copied to clipboard

Change/Disabled role in svg icon

Open SergeyWebDeveloper opened this issue 4 years ago • 1 comments

Thanks for the library. I would like to ask how you can change the role of the svg icon. At the moment I am using react testing library for tests and it turns out not entirely correct that I am looking for the role of the presentation in the test and the icon is. I can use the title to remove the role, but this behavior is also not entirely correct for me. Thanks!

SergeyWebDeveloper avatar Aug 31 '21 09:08 SergeyWebDeveloper

@SergeyWebDeveloper Can you please link to accessibility documentation where this wouldn't be the correct behavior?

If you're using the <Icon /> component for something other than icon's that might be outside of the scope. In this case the only role is presentation or a title/description must be defined.

Templarian avatar Oct 12 '21 04:10 Templarian