Icon: Use empty <svg> as fallback to prevent layout shift (#114901)

render an empty `<svg>` instead to better match styles in other components
This commit is contained in:
Ashley Harrison
2025-12-08 11:11:50 +00:00
committed by GitHub
parent 5a8a730cfe
commit 5bd73f3264
@@ -93,7 +93,7 @@ export const Icon = React.memo(
// this prevents content layout shift whilst the icon asynchronously loads
// which happens even if the icon is in the cache(!)
loader={
<span
<svg
className={cx(
css({
width: svgWid,