Skip to content

Conversation

@Puneetsehgal
Copy link
Collaborator

Made Checkout Mini cart sticky for Desktop and Tablet and chnage the order of section in mobile, Move the mini cart above the address and credit card form

Made Checkout Mini cart sticky for Desktop and Tablet and chnage the order of section in mobile, Move the mini cart above the address and credit card form
@Puneetsehgal Puneetsehgal linked an issue Mar 10, 2020 that may be closed by this pull request
@@ -1,4 +1,4 @@
<div class="order-summary" data-js="order-summary">
<div class="order-summary sticky-moneybox" data-js="order-summary">
Copy link

@theBRiGuy theBRiGuy Mar 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to change sticky-moneybox class name to be more BEM (since it is a modifier). i.e. order-summary--sticky-moneybox. You'll need to have that class in addition to the original order-summary. i.e.:

<div class="order-summary order-summary--sticky-moneybox" data-js="order-summary">

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, make sense. I will make the change

}
};

const stickyMoneybox = () => {
Copy link

@theBRiGuy theBRiGuy Mar 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't immediately clear, from the function name, what this does. It doesn't seem to be a pure function (since it doesn't return anything, and it seems to manipulate something outside of itself). Is it only run once? Perhaps it shouldn't be a function then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made the changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checkout minicart (sticky?)

3 participants