diff options
author | 2022-10-20 19:42:36 +0000 | |
---|---|---|
committer | 2022-10-20 19:42:36 +0000 | |
commit | ed2dfdae5bea93746be883bc528c1fb6407af6eb (patch) | |
tree | 88584fbd83dee8fdbdf122d27f6457fc45deac60 /examples/blog/src | |
parent | 863391f10e179d87ab1f24f944e8601314ff4db7 (diff) | |
download | astro-ed2dfdae5bea93746be883bc528c1fb6407af6eb.tar.gz astro-ed2dfdae5bea93746be883bc528c1fb6407af6eb.tar.zst astro-ed2dfdae5bea93746be883bc528c1fb6407af6eb.zip |
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>
Diffstat (limited to 'examples/blog/src')
0 files changed, 0 insertions, 0 deletions