github withastro/astro @astrojs/image@0.11.0

latest releases: astro@4.8.6, astro@4.8.5, @astrojs/studio@0.1.0...
19 months ago

Minor Changes

  • #5180 b77200f42 Thanks @tony-sull! - Removes the content-visibility: auto styling added by the <Picture /> and <Image /> components.

    Why: The content-visibility style is rarely needed for an <img> and can actually break certain layouts.

    Migration: Do images in your layout actually depend on content-visibility? No problem! You can add these styles where needed in your own component styles.

  • #5038 ed2dfdae5 Thanks @emmanuelchucks! - HTML attributes included on the <Picture /> component are now passed down to the underlying <img /> element.

    Why?

    • when styling a <picture> the class and style attributes belong on the <img> itself
    • <picture> elements should not actually provide any aria- attributes
    • width and height can be added to the <img> to help prevent layout shift

Don't miss a new astro release

NewReleases is sending notifications on new releases.