Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always add height and width prop to image with layout="raw" (#36523)
This PR makes the following changes: * Always add the `height` and `width` prop to image with `raw` layout (previously only added to images without `sizes`) * Add a warning if a raw layout image is getting stretched (which can be caused by interaction of height and width prop with styles) * Remove automatic aspect-ratio style from `raw` images. This is no longer necessary if all `raw` images have height and width props. * Update tests and docs accordingly
- Loading branch information
Showing
4 changed files
with
57 additions
and
34 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