-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Module & Theme less optimization for cross browser compatibility. #30728
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
Module & Theme less optimization for cross browser compatibility. #30728
Conversation
Hi @pratiksangani. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento create issue |
@magento run all tests |
@ihor-sviziev Will you please proceed this PR? |
@magento run all tests |
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.
Hi @pratiksangani,
Could you fix failing static tests?
align-items: flex-start; | ||
display: flex; | ||
.lib-vendor-box-align(flex-start); | ||
.lib-vendor-prefix-display(flex); | ||
float: left; |
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.
default param .lib-vendor-prefix-display() is flex so you don't need to more specific except you want to try inline flex such as .lib-vendor-prefix-display(inline-flex)
@@ -438,8 +438,6 @@ button { | |||
&._parent { | |||
.lib-vendor-prefix-display(flex); | |||
.lib-vendor-prefix-flex-direction(row); | |||
display: flex; | |||
flex-direction: row; | |||
|
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.
we don't have to specific flex in here when call .lib-vendor-prefix
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.
And the rest changes fine with me
Hi @ihor-sviziev, thank you for the review. |
Is there still a need to prefix all the flex stuff these days? Granted there will be some cases where IE11 or Safari installed before 2015 needs to be supported, though if you are building for those browsers, flexbox prefixes are the least of your concerns :) |
@digiltd good point! |
@ihor-sviziev I think |
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.
Hi @pratiksangani,
Could you revert all changes and leave the only changes for appearance
?
@pratiksangani I am closing this PR now due to inactivity. |
Hi @pratiksangani, thank you for your contribution! |
Description (*)
Updated core modules & theme less design with Magento default Flex layout less mixins. Reference taken from
<Magento2>/lib/web/css/source/lib/_utilities.less:409 Flex layout mixins
and my Magento 2 theme development experience. Using these provided mixins, the design will work on cross-browser platform properly. I've also removed some redundant code from some direct less styles, as they were already been covered by less mixins.Related Pull Requests
N/A
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
N/A
Questions or comments
Contribution checklist (*)
Resolved issues: