You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the image template outputs the image wrapped in a div. When using a pattern such as the heading icon this can cause problems. Ideally we should be able to output an image without a container, even if this is an option rather than a default.
The text was updated successfully, but these errors were encountered:
I think it's still a valid issue, I just noticed this causing problems with heading-icon component when migrating to new typography styles.
In some components in Vanilla we style images directly (for example in heading-icon component), image template adds a div wrapper around the image causing unexpected issues with flexbox (because the div is now a child element not an image).
From readme it seems that this div is added to support some kind of lazy loading plugin - are we even using it?
And it seems that these days native lazy loading via loading="lazy" is practically available in all major browsers, so we should be fine relying on that: https://caniuse.com/loading-lazy-attr
Currently the image template outputs the image wrapped in a
div
. When using a pattern such as the heading icon this can cause problems. Ideally we should be able to output an image without a container, even if this is an option rather than a default.The text was updated successfully, but these errors were encountered: