astro/packages
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
..
astro [ci] release (#5117) 2022-10-19 15:29:21 -04:00
astro-prism [ci] release (#4249) 2022-08-11 16:50:59 -07:00
astro-rss [ci] release (#4903) 2022-09-29 11:20:00 -04:00
create-astro [ci] release (#4846) 2022-09-27 12:12:44 -04:00
integrations fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
markdown [ci] release (#4903) 2022-09-29 11:20:00 -04:00
telemetry [ci] release (#4903) 2022-09-29 11:20:00 -04:00
webapi [ci] release (#4846) 2022-09-27 12:12:44 -04:00