Most (if not all) of our SVG React components are generated with SVGR.
Using SVGR generates ids to the mask groups inside the given SVG, which are extremely likely to clash if there are two SVGRs in the same html layout, resulting in the later declaration of id properties to be used for the wrong SVGs.
We should take a look at all the SVG React components to name the mask ids to something less likely to clash.
Most (if not all) of our SVG React components are generated with SVGR. Using SVGR generates
id
s to the mask groups inside the given SVG, which are extremely likely to clash if there are two SVGRs in the same html layout, resulting in the later declaration ofid
properties to be used for the wrong SVGs.We should take a look at all the SVG React components to name the mask ids to something less likely to clash.
See related issue in https://github.com/opengovsg/FormSG/pull/5749