This is because FluentIconsProps is typed with React.RefAttributes<HTMLElement> and it can't be used on SVG element.
This PR replaced HTMLElement with generic TRefType and set the default to be SVGSVGElement. It ensures the backward compatibility for anyone using HTMLElement ref.
When using wrapIcon to create icon with svg, it can have below error: https://codesandbox.io/s/amazing-cartwright-lwwdyf?file=/example.tsx
This is because
FluentIconsProps
is typed withReact.RefAttributes<HTMLElement>
and it can't be used on SVG element.This PR replaced HTMLElement with generic TRefType and set the default to be SVGSVGElement. It ensures the backward compatibility for anyone using HTMLElement ref.