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

adding the alt attribute #103

Closed
apmavrin opened this issue Dec 6, 2023 · 1 comment
Closed

adding the alt attribute #103

apmavrin opened this issue Dec 6, 2023 · 1 comment

Comments

@apmavrin
Copy link

apmavrin commented Dec 6, 2023

Would it make sense adding an optional alt attribute to the ReactoComponent to support the accessibility?

client.d.ts

const ReactComponent: React.FunctionComponent<
    React.ComponentProps<"svg"> & { title?: string, **alt?: string** }
>;
@paolostyle
Copy link

alt attribute is not a valid attribute on an <svg> element. The title prop essentially does what you want, it's equivalent to alt on <img>. So I'm not sure what you're trying to achieve but it's probably wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants