-
Notifications
You must be signed in to change notification settings - Fork 27.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Image
srcset
to ensure the component's width
is the largest p…
…ossible image (#18236) There was a bug when the user defines a width on the Image component, but a larger size image is requested. This is because the browser uses the `srcset` to decide which image size to request and we had the srcset basically hardcoded. This PR fixes the behavior so that the `srcset` will never be larger than the `width` defined on the component. It also fixes a bug where the preload srcset did not match the img srcset. - Related to #18147 - Related to #18122
- Loading branch information
Showing
6 changed files
with
120 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.