Open fkakatie opened 6 months ago
PageSpeed Insights diagnostics recommends to "[s]et an explicit width and height on image elements to reduce layout shifts and improve CLS."
Currently, the decorateIcon function creates an img tag for SVGs without setting an explicit width or height.
decorateIcon
img
Proposal to set an explicit width and height based on the font size of the containing element (the span).
span
Description
PageSpeed Insights diagnostics recommends to "[s]et an explicit width and height on image elements to reduce layout shifts and improve CLS."
Currently, the
decorateIcon
function creates animg
tag for SVGs without setting an explicit width or height.Proposal to set an explicit width and height based on the font size of the containing element (the
span
).Test URLs
Types of changes
Checklist: