Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change/Disabled role in svg icon #63

Open
SergeyWebDeveloper opened this issue Aug 31, 2021 · 1 comment
Open

Change/Disabled role in svg icon #63

SergeyWebDeveloper opened this issue Aug 31, 2021 · 1 comment
Labels
question Further information is requested

Comments

@SergeyWebDeveloper
Copy link

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 SergeyWebDeveloper changed the title Change role in svg icon Change/Disabled role in svg icon Aug 31, 2021
@Templarian
Copy link
Owner

Templarian commented Oct 12, 2021

@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 Templarian added the question Further information is requested label Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants