diff --git a/lib/web/fotorama/fotorama.js b/lib/web/fotorama/fotorama.js index 2de7213f41ad6..df4044e41d1f2 100644 --- a/lib/web/fotorama/fotorama.js +++ b/lib/web/fotorama/fotorama.js @@ -1191,8 +1191,13 @@ fotoramaVersion = '4.6.4'; return !!el.getAttribute('disabled'); } - function disableAttr(FLAG) { - return {tabindex: FLAG * -1 + '', disabled: FLAG}; + function disableAttr(FLAG, disable) { + if (disable) { + return {disabled: FLAG}; + } else { + return {tabindex: FLAG * -1 + '', disabled: FLAG}; + + } } function addEnterUp(el, fn) { @@ -2613,10 +2618,10 @@ fotoramaVersion = '4.6.4'; disableNext = disableDirrection(1); $arrPrev .toggleClass(arrDisabledClass, disablePrev) - .attr(disableAttr(disablePrev)); + .attr(disableAttr(disablePrev, false)); $arrNext .toggleClass(arrDisabledClass, disableNext) - .attr(disableAttr(disableNext)); + .attr(disableAttr(disableNext, false)); } function thumbArrUpdate() { @@ -2633,10 +2638,10 @@ fotoramaVersion = '4.6.4'; } $thumbArrLeft .toggleClass(arrDisabledClass, isLeftDisable) - .attr(disableAttr(isLeftDisable)); + .attr(disableAttr(isLeftDisable, true)); $thumbArrRight .toggleClass(arrDisabledClass, isRightDisable) - .attr(disableAttr(isRightDisable)); + .attr(disableAttr(isRightDisable, true)); } function stageWheelUpdate() { diff --git a/lib/web/mage/gallery/gallery.html b/lib/web/mage/gallery/gallery.html index 4ce2961640544..15e9b88a8a657 100644 --- a/lib/web/mage/gallery/gallery.html +++ b/lib/web/mage/gallery/gallery.html @@ -25,13 +25,13 @@
-
+
-
+
diff --git a/lib/web/mage/gallery/module/_focus.less b/lib/web/mage/gallery/module/_focus.less index 037a2c3f99602..15b571c80eb79 100644 --- a/lib/web/mage/gallery/module/_focus.less +++ b/lib/web/mage/gallery/module/_focus.less @@ -7,7 +7,6 @@ .fotorama__zoom-out:focus, .fotorama__zoom-in:focus, .fotorama__arr:focus, -.fotorama__arr:focus, .fotorama__stage__shaft:focus, .fotorama__nav__frame--thumb:focus .fotorama__thumb, .fotorama__nav__frame--dot:focus .fotorama__dot { @@ -59,4 +58,9 @@ .fotorama__thumb.fotorama_vertical_ratio:after{ bottom: 1px; } -} \ No newline at end of file +} + +.fotorama__thumb__arr { + box-shadow: none; +} +