cast className to String for SVG elements