magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Safari & minicart

Open slackerzz opened this issue 9 years ago • 13 comments

Preconditions

  1. 2.0.x & 2.1.2 (both CE & EE)
  2. blank theme
  3. Safari (both mac and ios)

Steps to reproduce

  1. click the minicart icon to open the dropdown

Expected result

  1. desktop schermata del 2017-01-18 14-38-15
  2. mobile schermata del 2017-01-18 14-38-40

Actual result

  1. desktop bs_macsie_safari_broken
  2. mobile bs_ios_mobile_iphone 7 plus-10 0

I've found a really strange behavior, when the minicart dropdown is shown any style modification to the page through the inspector will fix the misplaced elements.

slackerzz avatar Jan 18 '17 13:01 slackerzz

Also the same for 2.1.3

rudik99 avatar Jan 18 '17 22:01 rudik99

@slackerzz Thanks for reporting this issue. This issue is already addressed in internal ticket MAGETWO-63089. I’ve added your report on this issue to that ticket.

xmav avatar Feb 07 '17 15:02 xmav

@xmav since it's not possible for us to track your internal tickets, can you tell if there is a solution/workaround?

slackerzz avatar Feb 07 '17 15:02 slackerzz

@slackerzz this issue will be closed in sync with internal ticket

xmav avatar Feb 07 '17 15:02 xmav

You can try to tweak the position css of .minicart-wrapper .ui-dialog. Try static or absolute

I have something like this somewhere in some theme css:

.minicart-wrapper .ui-dialog {
    position: absolute;
    width: 0px;
    height: 0px;
    top: 100%;
    left: 100%;
}

Still gives a strange glitching flash in IE9 and sometimes in safari on mac, but then it's fine. Doesn't do this on ios though.

Quinten avatar Mar 29 '17 08:03 Quinten

Setting static width for the mini cart icon wrapper fixed this issue for me: .minicart-wrapper { width: 22px; }

git-reset--hard avatar Apr 12 '17 12:04 git-reset--hard

My fix is something close to what @Quinten did except no positioning since the child has the style we need ( if you correctly use .lib-dropdown()

.minicart-wrapper .ui-dialog {
    width: 0;
}

Tested crossbrowser and works without flickering

patruvlad avatar Jun 30 '17 12:06 patruvlad

It would be nice to know what happened to MAGETWO-63089

slackerzz avatar Jun 30 '17 13:06 slackerzz

@Patruvlad, Could you write where exactly these lines were written?

Flamestyle avatar Jul 24 '17 14:07 Flamestyle

@Flamestyle sure thing, you need to write the following codes of line in Magento_Checkout/web/css/source/module/_extend.less if you have a custom theme with inheritance from the Magento_Blank. If you have a custom file something like _minicart_extend.less that is included in the _extend.less set it in the custom style file

.minicart-wrapper{  
        > .mage-dropdown-dialog {
            width: 0;
        }
}

patruvlad avatar Aug 10 '17 09:08 patruvlad

@slackerzz, thank you for your report. We've created internal ticket(s) MAGETWO-63985 to track progress on the issue.

magento-engcom-team avatar Oct 11 '17 12:10 magento-engcom-team

Hi, everyone! You can use this commit as patch to fix an issue)

undefined-olha avatar Oct 23 '17 16:10 undefined-olha

The issue has been fixed in 2.1-develop branch and will be available with next patch release

okorshenko avatar Nov 09 '17 21:11 okorshenko