Closed Eugene-Musika closed 2 years ago
It seams like title attribute do not support by browsers on <svg/> tags like they do for other tags. Example for default usage:
title
<svg/>
<span title="I'm accessible tip">Some text</span>
Example for <svg/> tag from MDN:
<svg viewBox="0 0 20 10" xmlns="http://www.w3.org/2000/svg"> <circle cx="5" cy="5" r="4"> <title>I'm a circle</title> </circle> <rect x="11" y="1" width="8" height="8"> <title>I'm a square</title> </rect> </svg>
It would be grate if next code
<IcoMoon iconSet={iconSet} icon="MyIcon" title="My icon" />
would transforms into
<svg ... > <path ... > <title>My icon</title> </path> </svg>
cos for now if I want browser tips on icons I must make a wrapper tag with title attribute on it
Good point. I plan to evaluate it and work on it soon. Thank you for your feedback.
Closes https://github.com/aykutkardas/react-icomoon/commit/67a01bf03782f51c33ecc126c188e7c8c161713d
Check v2.4.0
It seams like
title
attribute do not support by browsers on<svg/>
tags like they do for other tags. Example for default usage:Example for
<svg/>
tag from MDN:It would be grate if next code
would transforms into
cos for now if I want browser tips on icons I must make a wrapper tag with title attribute on it