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

Support tooltip display by passing a title child element #104

Open
acooo1 opened this issue Oct 28, 2022 · 0 comments
Open

Support tooltip display by passing a title child element #104

acooo1 opened this issue Oct 28, 2022 · 0 comments

Comments

@acooo1
Copy link

acooo1 commented Oct 28, 2022

As explained in this comment, title is not a valid svg attribute and will then not display a tooltip on icon hover. Setting title prop should instead add a <title> child element as follow:

<Icon title="my title" />

resulting in:

<svg>
    <title>{title}</title>
</svg>
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

1 participant