astro/packages/integrations/image/test/fixtures/basic-picture
Emmanuel Chucks ed2dfdae5b
fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038)
* fix: also pass attrs to underlying img

`class` for direct img styling, `width` & `height` to prevent layout shift, etc need to be passed to the underlying img tag to work.

* remove redundant attr from picture tag

* revert to previous commit

- seemed to break some tests
- can't deal with fixing that right now, maybe later

* only passing attributes to the img

* adding a note to the README

* chore: add changeset

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-20 19:42:36 +00:00
..
public Image integration refactor and cleanup (#4482) 2022-08-30 21:09:44 +00:00
server Adds a new <Picture> component to the image integration (#3866) 2022-07-08 21:37:55 +00:00
src fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
astro.config.mjs Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
package.json Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00