Icon: Use non-block element for loader (#110399)

This commit is contained in:
Alex Khomenko
2025-09-03 15:29:33 +03:00
committed by GitHub
parent 2afb21f9f7
commit 88a63a1d92
@@ -84,11 +84,11 @@ export const Icon = React.memo(
title={title}
className={composedClassName}
style={style}
// render an empty div with the correct dimensions while loading
// render an empty element with the correct dimensions while loading
// this prevents content layout shift whilst the icon asynchronously loads
// which happens even if the icon is in the cache(!)
loader={
<div
<span
className={cx(
css({
width: svgWid,