-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Error "extend ' .no-link a' has no matches" when compiling email-inline css using an alternative less compiler #22330
Comments
Hi @hostep. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @hostep do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Preconditions (*)
Steps to reproduce (*)
npm install [email protected]
to install an alternative less compiler then what Magento ships withbin/magento setup:static-content:deploy -f -t Magento/luma en_US
(this is just to generate the necessary files invar/view_preprocessed
)node_modules/.bin/lessc --no-color var/view_preprocessed/pub/static/frontend/Magento/luma/en_US/css/email-inline.less | head
Expected result (*)
Actual result (*)
extend ' .no-link a' has no matches
Discussion
This was done using the Magento/luma theme, but can be reproduced using the Magento/blank theme as well.
I can get rid of the less compilation problem by removing the following lines:
But not sure if removing these lines is good, I think this has something to do with the difference between inline email styles and non-inline email styles. But I don't know much about the logic of how that works.
The
.no-link a
mixin (?) is defined over here btw: https://github.com/magento/magento2/blob/2.3.1/app/design/frontend/Magento/blank/web/css/source/_email-base.less#L136-L140The text was updated successfully, but these errors were encountered: