Skip to content
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

Updage seletor style in _message.les #36698

Open
wants to merge 6 commits into
base: 2.4-develop
Choose a base branch
from

Conversation

vitinhomorais00
Copy link

@vitinhomorais00 vitinhomorais00 commented Jan 3, 2023

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 (*)

  1. Custom theme password reset flow (header and footer)
  2. Receive an email

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 line 56 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 (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Resolved issues:

  1. resolves [Issue] Updage seletor style in _message.les #39308: Updage seletor style in _message.les

Adjustment in the styled element, so that there is no validation break when loading the style in email and in the frontend.
@m2-assistant
Copy link

m2-assistant bot commented Jan 3, 2023

Hi @vitinhomorais00. Thank you for your contribution
Here are some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here

ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review.

For more details, review the Magento Contributor Guide documentation.

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 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, join the Community Contributions Triage session to discuss the appropriate ticket.

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@vitinhomorais00
Copy link
Author

@magento run all tests

@magento-automated-testing
Copy link

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.

@vitinhomorais00
Copy link
Author

@magento give me test instance

@magento-deployment-service
Copy link

Hi @vitinhomorais00. Thank you for your request. I'm working on Magento instance for you.

1 similar comment
@magento-deployment-service
Copy link

Hi @vitinhomorais00. Thank you for your request. I'm working on Magento instance for you.

@vitinhomorais00
Copy link
Author

run all tests

@magento-deployment-service
Copy link

Hi @vitinhomorais00, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

1 similar comment
@magento-deployment-service
Copy link

Hi @vitinhomorais00, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

@vitinhomorais00
Copy link
Author

run all tests

1 similar comment
@vitinhomorais00
Copy link
Author

run all tests

@engcom-Hotel engcom-Hotel added the Priority: P3 May be fixed according to the position in the backlog. label Jan 10, 2023
@vitinhomorais00
Copy link
Author

run all tests

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vitinhomorais00 Please sign CLA

@vitinhomorais00
Copy link
Author

vitinhomorais00 commented Feb 6, 2023

@Den4ik CLA was signed. What would be the next step?
An observation that I forgot to mention, this error only occurs in mode:production, so it is a very difficult error to occur, but at the same time serious.
I'm waiting.

@vitinhomorais00
Copy link
Author

@magento run all testes

@magento-automated-testing
Copy link

Failed to run the builds. Please try to re-run them later.

@Den4ik
Copy link
Contributor

Den4ik commented Feb 6, 2023

@magento run all tests

@magento-automated-testing
Copy link

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.

Copy link
Contributor

@Den4ik Den4ik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Changes looks good for me and don't require additional tests

@vitinhomorais00
Copy link
Author

@Den4ik Thanks. I will wait for the next steps.

@vitinhomorais00
Copy link
Author

@magento run all tests

@magento-automated-testing
Copy link

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.

@vitinhomorais00
Copy link
Author

@magento run all tests

@magento-automated-testing
Copy link

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.

@vitinhomorais00
Copy link
Author

@Den4ik Do you know an estimate where the tests end?

@Den4ik
Copy link
Contributor

Den4ik commented Feb 7, 2023

@Den4ik Do you know an estimate where the tests end?

It will be QAed according to priorities of internal team. Please wait updates

@vitinhomorais00
Copy link
Author

@Den4ik Thanks for the update, I'll wait for updates from the team.

@engcom-Lima engcom-Lima added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Jul 7, 2023
@vitinhomorais00
Copy link
Author

@magento run all tests

@engcom-Dash engcom-Dash self-assigned this Oct 15, 2024
@engcom-Dash
Copy link
Contributor

engcom-Dash commented Oct 15, 2024

Manual testing is not required since this corrects the color format from invalid #green to green.

Builds are failed. Hence moving it to Extended Testing.

@engcom-Dash
Copy link
Contributor

@magento run all tests

@engcom-Dash
Copy link
Contributor

@magento create issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: P3 May be fixed according to the position in the backlog. Progress: ready for testing Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
Status: Merge in Progress
Development

Successfully merging this pull request may close these issues.

[Issue] Updage seletor style in _message.les
5 participants