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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user