Skip to content

Commit bcf996c

Browse files
committed
Fixed arrows on storefront. Arrows now hide and show properly
1 parent 5c997d4 commit bcf996c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/ProductVideo/view/frontend/web/js/fotorama-add-video-events.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,7 @@ define([
499499
if (!self.isFullscreen) {
500500
self._showCloseVideo();
501501
}
502+
$('.' + self.FTAR).addClass('hidden-video');
502503
}
503504
});
504505
this._handleBaseVideo(fotorama, number); //check for video is it base and handle it if it's base
@@ -579,6 +580,7 @@ define([
579580
self._hideCloseVideo();
580581

581582
});
583+
$('.' + this.FTAR).removeClass('hidden-video');
582584
}
583585
});
584586

app/design/frontend/Magento/blank/Magento_ProductVideo/web/css/source/_module.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ and (orientation : landscape) {
7474
}
7575

7676
.fotorama__arr.hidden-video {
77-
z-index: -1;
77+
z-index: -1 !important;
7878
}
7979

8080
.fotorama__video-close {

0 commit comments

Comments
 (0)