-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gatsby-image): Add art direction (#13395)
* Add optional media key to PropTypes and Typescript declarations * Add optional fluidImages and fixedImages props * Add art direction to fixed and fluid images * Add art direction to base64 and tracedSVG * Add art direction to noscript image * Add tests for fixedImages and fluidImages * Respond to code review * Use const in tests * Additinal code review refactor * Fix e2e tests * Add README docs * Fix typo and update wording in README * Name selectors in e2e test * Work around SVG bug by encoding spaces * Fix breaking Placeholder change, respond to code review, and update snapshots * Use @polarthene's Pastebin * Update sharp snapshot test * Reset integration tests * Move fluidImages & fixedImages into fluid & fixed * update tests with no media * cleanup spreadprops * Add warning if multiple sources with no media were used * review changes * fix tests
- Loading branch information
Showing
8 changed files
with
490 additions
and
84 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
Oops, something went wrong.