-
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
Fixes a less compilation error: '.no-link a' isn't defined when .emai… #22332
Fixes a less compilation error: '.no-link a' isn't defined when .emai… #22332
Conversation
…l-non-inline() isn't active, so when using '.no-link a', it should be wrapped inside .email-non-inline().
Hi @hostep. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @orlangur, thank you for the review. |
✔️ QA passed |
Hi @hostep, thank you for your contribution! |
Release note: |
…l-non-inline() isn't active, so when using '.no-link a', it should be wrapped inside .email-non-inline().
Description (*)
This was discovered by using a different less compiler then what Magento ships with.
The selector
.no-link a
only exists when.email-non-inline()
is active, see:https://github.com/magento/magento2/blob/2.3.1/app/design/frontend/Magento/blank/web/css/source/_email-base.less#L136-L140
However, it gets used in the Magento/blank & Magento/luma themes without being wrapped in
.email-non-inline()
.This throws an error when using less.js compiler v2.7.3 when compiling the
email-inline.less
file. Error message:extend ' .no-link a' has no matches
.See #22330 for more details.
Fixed Issues (if relevant)
Manual testing scenarios (*)
npm install [email protected]
bin/magento setup:static-content:deploy -f -t Magento/luma en_US
node_modules/.bin/lessc --no-color var/view_preprocessed/pub/static/frontend/Magento/luma/en_US/css/email-inline.less | head
extend ' .no-link a' has no matches
, with this fix that error is gone.#333333
, not in#006bb4
.Contribution checklist (*)