- Notifications
You must be signed in to change notification settings - Fork 9.4k
Fixed mobile version of checkout progress bar #36982
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
Fixed mobile version of checkout progress bar #36982
Conversation
Hi @nidhigupta13-ey. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
// | ||
// Desktop | ||
// _____________________________________________ | ||
|
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.
any reason of remove this media mixin ?
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.
As this issue is working fine in blank theme. So I compared the code and there as well we don't have any mixin and using the progress bar code irrespective of view. So the progress bar will show in each device.
| ||
// | ||
// Mobile max width 600px | ||
// |
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.
should target for mobile device. These lines will also maybe duplicated for desktop
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 is not duplicated. Some kind of thing like margin and width is only changing based on screen size.
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.
without wrap between media mixins your code styles probably duplicated in both final output files styles-m.css and styles-l.css as i remember before
That's why code base use mixins for target mobile or desktop
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.
If you want apply for mobile move code between for apply also mobile and desktop
& when (@media-common = true) { //Your code here }
@media (min-width: 280px) and (max-width: 320px) { | ||
.opc-progress-bar-item { | ||
.lib-css(width, @checkout-progress-bar-item__width__mobile_small); | ||
} |
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.
Also you should use screen variables instead hardcoded fix value
Is there any final solution to this problem yet? I copied the _progress-bar.less file from the dev to my 2.4.6 installation but I didn't see any change! |
@cptX app/design/frontend/Magento/luma/Magento_Checkout/web/css/source/module/checkout/_progress-bar.less this is the path of the file. You can copy your file in this path. |
Hi @nidhigupta13-ey , app/design/frontend/MyName/MyCustomTheme/Magento_Checkout/web/css/source/module/checkout/_progress-bar.less Should I place it exactly with the "Magento/luma" path or can it work with the above path as well? If it should work with my custom theme then unfortunately it didn't work... |
@cptX try to place it with "Magento/luma" path |
It didn't work even in Magento/luma path... I cannot see the progress bar in the checkout page in mobile... |
Also I see that in checkout in mobile the menu button (3 horizontal lines) is also missing. Is this expected? Does it make sense? |
@cptX those three lines are not there in desktop view as well, so I don't think so it should be there in mobile view. |
OK regarding the Menu lines just ignore it. I still believe that the progress bar is not visible in mobile after the patch. Whatever I tried didn't work. |
@magento run all tests |
Hi @nidhigupta13-ey, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce Use a mobile phone or mobile view in browser dev tools
Before: ✖️ ![]() After: ✔️ ![]() ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run all tests |
@magento run Unit Tests, Functional Tests CE, Functional Tests B2B |
@magento run Functional Tests CE, Functional Tests B2B |
1 similar comment
@magento run Functional Tests CE, Functional Tests B2B |
@magento run all tests |
1 similar comment
@magento run all tests |
@magento run Integration Tests, Functional Tests CE, Functional Tests B2B |
1022693
into magento:2.4-develop
Description (*)
Fixed the issue in mobile for checkout progress bar. Now it's showing in mobile and tablet view.
Related Pull Requests
#36856
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)