Bug Report: SVG’s have identical ID’s.
-
Hi!
Back here with another small bug report along with a suggested fix! ??
So when selecting from the different Gutenberg blocks, Give uses an SVG to render the Give icon. However, it uses the following clip-path
clipPath="url(#SVGID_2_)"
. Which would work like a charm if there was only one #SVGID_2_. Unfortunately, since GiveWP creates 5 different blocks, and each block defines it’s own set of#SVGID_1_
and#SVGID_2_
‘s, we end up with 5 of each. This is against ID usage standards, which results in it breaking the clipping and not rendering the icon in some browsers (for example in Firefox):
To fix this, I’d suggest either making sure each SVG has a unique set of IDs, or replacing them with a class.
Let me know your thoughts!
David
- The topic ‘Bug Report: SVG’s have identical ID’s.’ is closed to new replies.