Removed chevron arrows when only one product image #2917
Merged
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.
Related issues
closes #2911
Short description and why it's useful
Issue #2911 stated that when there is only 1 product image the gallery navigation still shows even though you can't scroll. The same goes for then you reach the end of the gallery and can't scroll any further to the left or right; it would still show a navigation arrow for that direction (but in 0.3 opacity.
My fix hides the navigation arrow on class '.VueCarousel-navigation--disabled'.
The result; when there is only 1 product image OR when you can't scroll further towards a direction, it will hide the navigation arrow.
Screenshots of visual changes before/after (if there are any)
Before
After
Obviously on products with only 1 image both navigation arrows will be hidden.
Which environment this relates to
develop
branch and want to merge it back todevelop
release
branch and want to merge it back torelease
hotfix
ormaster
branch and want to merge it back tohotfix
Upgrade Notes and Changelog
Contribution and currently important rules acceptance