[Issue] Updage seletor style in _message.les #39308
Labels
Area: Perf/Frontend
All tickets related with improving frontend performance.
Component: Frontend
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Priority: P3
May be fixed according to the position in the backlog.
Progress: PR in progress
Reproduced on 2.4.x
The issue has been reproduced on latest 2.4-develop branch
This issue is automatically created based on existing pull request: #36698: Updage seletor style in _message.les
Description (*)
Adjustment in the styled element, so that there is no validation break when loading the style in email and in the frontend.
Related Pull Requests
vitinhomorais00/magento2@2.4-develop...vitinhomorais00-patch-1
Manual testing scenarios (*)
Questions or comments
A footer and header template was created in a custom theme.
We manually took the styling from the file: lib/web/css/docs/source/_messages.less and included it in the theme.
Doing so always returns the error CSS inlining error: Warning: Uninitialized string offset 5 in
/var/www/html/Magento2/vendor/sabberworm/php-css-parser/src/Value/Color.php
on line56
view the email in a provider (gmail, outlook, mailinator, etc).We found the error in this line of code:
@message-custom-icon__background: #green;
The correct one would be
@message-custom-icon__background: green;
So, before it was giving an error during the compilation of the inline CSS in the email, when adjusting this styling it worked again.
We noticed that the same instruction exists in the native file and it would be interesting to have its value correct.
Contribution checklist (*)
The text was updated successfully, but these errors were encountered: