diff options
author | 2022-10-26 05:43:23 -0700 | |
---|---|---|
committer | 2022-10-26 08:43:23 -0400 | |
commit | 4efbfdd78d239f708a76eac38c2e971fc956a54e (patch) | |
tree | b847e0f24aacce687bbf09397ac043f531fc72fa /packages/integrations/image/CHANGELOG.md | |
parent | 9630f683c4f2a3812b6ea4b0d997cc73fc4845b6 (diff) | |
download | astro-4efbfdd78d239f708a76eac38c2e971fc956a54e.tar.gz astro-4efbfdd78d239f708a76eac38c2e971fc956a54e.tar.zst astro-4efbfdd78d239f708a76eac38c2e971fc956a54e.zip |
[ci] release (#5135)astro@1.5.3@astrojs/vercel@2.3.2@astrojs/mdx@0.11.5@astrojs/image@0.11.0
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/image/CHANGELOG.md')
-rw-r--r-- | packages/integrations/image/CHANGELOG.md | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/integrations/image/CHANGELOG.md b/packages/integrations/image/CHANGELOG.md index 8bc7b470e..3c6632685 100644 --- a/packages/integrations/image/CHANGELOG.md +++ b/packages/integrations/image/CHANGELOG.md @@ -1,5 +1,23 @@ # @astrojs/image +## 0.11.0 + +### Minor Changes + +- [#5180](https://github.com/withastro/astro/pull/5180) [`b77200f42`](https://github.com/withastro/astro/commit/b77200f42399ea31b0045bc0e6bfe2c1c5ccc970) Thanks [@tony-sull](https://github.com/tony-sull)! - Removes the `content-visibility: auto` styling added by the `<Picture />` and `<Image />` components. + + **Why:** The [content-visibility](https://developer.mozilla.org/en-US/docs/Web/CSS/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](https://github.com/withastro/astro/pull/5038) [`ed2dfdae5`](https://github.com/withastro/astro/commit/ed2dfdae5bea93746be883bc528c1fb6407af6eb) Thanks [@emmanuelchucks](https://github.com/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](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture#attributes) actually provide any `aria-` attributes + - `width` and `height` can be added to the `<img>` to help prevent layout shift + ## 0.10.0 ### Minor Changes |