This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 219
Fix: skewed placeholder of product image - issue#7553 #7651
Merged
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
82db041
Fix typo in HTML markup of ProductImage block placeholder
1993312
Remove inline styles (width and height) from ImagePlaceholder in Prod…
kmanijak c3a374c
Remove inline styles (width and height) from placeholder image in Pro…
kmanijak d44008a
Add test to check placeholder image renders without width and height …
kmanijak 9f3677a
bot: update checkstyle.xml
github-actions[bot] 4763d7f
Fix TypeScript errors in the block test file of Product Image
kmanijak 4004875
bot: update checkstyle.xml
github-actions[bot] 826f1d1
Add generic alt text to placeholder image
kmanijak a8d13c8
Revert adding placeholder image alt text and add comments to make the…
kmanijak 20eef31
bot: update checkstyle.xml
github-actions[bot] 51434e5
Merge branch 'trunk' into fix/placeholder-product-image-is-skewed
kmanijak 53b608f
bot: update checkstyle.xml
github-actions[bot] 794b9ad
Merge branch 'trunk' into fix/placeholder-product-image-is-skewed
kmanijak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you clarify why
isLoading
is hardcoded tofalse
in the context of this test, and why was it needed to be added as a fix for this issue? 🤔There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! I added
isLoading
prop to each test, as I realised it's a required prop forProductDataContextProvider
and TypeScript checker complained about that.And considering the tests are checking the behaviour of component with images loaded already, I checked the code and
isLoading
passed asfalse
seems to set such condition. Also, there's no default value forisLoading
, so before adding that to tests, it was implicitly falsy.But I may be missing something, so I'm all ears if you see that may be troublesome! 👂
TS fixes/improvements were added as an extra to this PR and are not required as a fix for issue. I gathered them in a separate commit, but maybe I should've added it as a separate PR to avoid confusion. Let me know the way forward 🙌
EDIT: Or add it to the PR description in "Changes" section. Will keep that in mind for future.