Closed Ludonope closed 6 years ago
To add a tooltip on a div you need to add a title attribute on it. With svg it is a little different, you need to add a title tag into the svg one.
title
svg
Doesn't work:
<svg title="Some tooltip"> <path>...</path> </svg>
Work:
<svg> <title>Some tooltip</title> <path>...</path> </svg>
It would be a nice feature if putting a title attribute on the svgicon would generage a title tag in the final svg one.
svgicon
I opened the pull request https://github.com/MMF-FE/vue-svgicon/pull/59 solving my issue, hope it will be merged soon.
To add a tooltip on a div you need to add a
title
attribute on it. Withsvg
it is a little different, you need to add atitle
tag into thesvg
one.Doesn't work:
Work:
It would be a nice feature if putting a
title
attribute on thesvgicon
would generage atitle
tag in the finalsvg
one.