🍿 Minor Changes
-
#5180
b77200f42Thanks @tony-sull! - Removes thecontent-visibility: autostyling 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
ed2dfdae5Thanks @emmanuelchucks! - HTML attributes included on the<Picture />component are now passed down to the underlying<img />element.Why?
- when styling a
<picture>theclassandstyleattributes belong on the<img>itself <picture>elements should not actually provide anyaria-attributeswidthandheightcan be added to the<img>to help prevent layout shift
- when styling a