You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am loading a concatenated svg file which is the result of two SVG icons (the final file will have much more), and trying to have each icon show up individually by using its proper ID.
if I load each icon individually as in your example, it works great. but once I load the concact file it doesn't show anything.
attached is the svg file
here's the code I am using import icons from '../../../static/assets/svgs/icons.svg'; <button> <svg className={styles.iconPlus}> <use xlinkHref={'#icon-minus'}/> </svg> </button> <button> <svg className={styles.iconPlus}> <use xlinkHref={'#icon-plus'}/> </svg> </button> icons.svg.zip
The text was updated successfully, but these errors were encountered:
I am loading a concatenated svg file which is the result of two SVG icons (the final file will have much more), and trying to have each icon show up individually by using its proper ID.
if I load each icon individually as in your example, it works great. but once I load the concact file it doesn't show anything.
attached is the svg file
here's the code I am using
import icons from '../../../static/assets/svgs/icons.svg'; <button> <svg className={styles.iconPlus}> <use xlinkHref={'#icon-minus'}/> </svg> </button> <button> <svg className={styles.iconPlus}> <use xlinkHref={'#icon-plus'}/> </svg> </button>
icons.svg.zip
The text was updated successfully, but these errors were encountered: