Fix responsive image fallback in card components - #84
Open
ankit02327 wants to merge 1 commit into
Open
Conversation
Contributor
|
WebP is widely supported - https://caniuse.com/webp |
Contributor
Author
|
Thanks for pointing that out. You're right that WebP now has very broad browser support. My intention was mainly to make the Let me know what you’d prefer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updates the card components so the
<img>fallback uses the JPEG rendition instead of WebP.In a
<picture>element, the<img>tag acts as the final fallback for browsers that do not support the<source>formats. Using JPEG here ensures broader compatibility when WebP is not supported.Related to issue #8.
AI Usage
None