-
Notifications
You must be signed in to change notification settings - Fork 14
feature/137-checkout-minicart-sticky #271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
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
| @@ -1,4 +1,4 @@ | |||
| <div class="order-summary" data-js="order-summary"> | |||
| <div class="order-summary sticky-moneybox" data-js="order-summary"> | |||
There was a problem hiding this comment.
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">
There was a problem hiding this comment.
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
src/pages/checkout/checkout.js
Outdated
| } | ||
| }; | ||
|
|
||
| const stickyMoneybox = () => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the changes
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