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
|
// this prevents content layout shift whilst the icon asynchronously loads
|
||||||
// which happens even if the icon is in the cache(!)
|
// which happens even if the icon is in the cache(!)
|
||||||
loader={
|
loader={
|
||||||
<span
|
<svg
|
||||||
className={cx(
|
className={cx(
|
||||||
css({
|
css({
|
||||||
width: svgWid,
|
width: svgWid,
|
||||||
|
|||||||
Reference in New Issue
Block a user