Magento2: Safari & minicart

Created on 18 Jan 2017  路  13Comments  路  Source: magento/magento2

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.

Checkout Fixed in 2.1.x Fixed in 2.2.x Clear Description Confirmed Format is valid Ready for Work Reproduced on 2.1.x bug report

Most helpful comment

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

All 13 comments

Also the same for 2.1.3

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

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

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

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.

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

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

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

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

@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;
        }
}

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

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

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

Was this page helpful?
0 / 5 - 0 ratings