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

Lonely <br> tags in payment.html template #33820

Closed
1 task done
dudzio12 opened this issue Aug 17, 2021 · 12 comments · Fixed by #33892
Closed
1 task done

Lonely <br> tags in payment.html template #33820

dudzio12 opened this issue Aug 17, 2021 · 12 comments · Fixed by #33892
Assignees
Labels
Area: Design/Frontend Component: Code Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. Progress: done Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”. Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it

Comments

@dudzio12
Copy link
Member

dudzio12 commented Aug 17, 2021

Summary (*)

When checkout reCaptcha is not visible or visible and configured to use invisible reCaptcha, there are two lonely <br> tags inside payment.html file:
https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Checkout/view/frontend/web/template/payment.html

Examples (*)

                </legend><br />
                <!-- ko foreach: getRegion('place-order-captcha') -->
                    <!-- ko template: getTemplate() --><!-- /ko -->
                <!-- /ko -->
                <br />

Proposed solution

I suggest to remove them completely or move them to reCaptcha templates.

                </legend>
                <!-- ko foreach: getRegion('place-order-captcha') -->
                    <!-- ko template: getTemplate() --><!-- /ko -->
                <!-- /ko -->

Please leave me a feedback on what is the desired solution, so I can prepare PR for this.

  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
@dudzio12 dudzio12 added the Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it label Aug 17, 2021
@m2-assistant
Copy link

m2-assistant bot commented Aug 17, 2021

Hi @dudzio12. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


⚠️ According to the Magento Contribution requirements, all issues 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 issues 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

@mrtuvn
Copy link
Contributor

mrtuvn commented Aug 18, 2021

It's self closing tag but must be a reason we have that tag in that template. I assume they want add new line for the captcha. But it's still valid html

@dudzio12
Copy link
Member Author

@mrtuvn There are the other ways to achieve that html-less. With two <br> we end up with 2 line breaks, when captcha is disabled or invisible. That's why I think it should be removed completely and moved to stylesheet shoulders, which will implement basic margin on captcha element itself, only when place-order-captcha region is not empty.

@vertic4l
Copy link

vertic4l commented Aug 18, 2021

using br-tags to create space is such a bad idea

@engcom-Echo engcom-Echo self-assigned this Aug 23, 2021
@m2-assistant
Copy link

m2-assistant bot commented Aug 23, 2021

Hi @engcom-Echo. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Echo
Copy link
Contributor

engcom-Echo commented Aug 24, 2021

According to MDN Web docs, Creating separate paragraphs of text using <br> is not only bad practice, it is problematic for people who navigate with the aid of screen reading technology. Screen readers may announce the presence of the element, but not any content contained within <br>s. This can be a confusing and frustrating experience for the person using the screen reader. Hence we can consider removing the same.

@engcom-Echo engcom-Echo added Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch and removed Issue: ready for confirmation labels Aug 24, 2021
@engcom-Echo engcom-Echo added Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”. and removed Issue: ready for confirmation labels Aug 24, 2021
@engcom-Echo engcom-Echo added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: ready for confirmation labels Aug 24, 2021
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Confirmed in Issue Confirmation and Triage Board Aug 24, 2021
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Confirmed in Issue Confirmation and Triage Board Aug 24, 2021
@engcom-Echo engcom-Echo removed their assignment Aug 24, 2021
@engcom-Echo engcom-Echo removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 24, 2021
@engcom-Echo engcom-Echo removed the Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed label Aug 24, 2021
@m2-community-project m2-community-project bot moved this from Confirmed to Ready for Confirmation in Issue Confirmation and Triage Board Aug 24, 2021
@engcom-Echo engcom-Echo added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: ready for confirmation labels Aug 24, 2021
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Confirmed in Issue Confirmation and Triage Board Aug 24, 2021
@engcom-Hotel engcom-Hotel added the Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. label Aug 24, 2021
@m2-community-project m2-community-project bot added this to Pull Request In Progress in Low Priority Backlog Aug 24, 2021
@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Ready for Development in Low Priority Backlog Dec 9, 2021
@magepro-dev
Copy link
Member

@magento I am working on this

@m2-assistant
Copy link

m2-assistant bot commented Dec 31, 2021

Hi @magepro-dev! 👋
Thank you for collaboration. Only members of Community Contributors Team are allowed to be assigned to the issue. Please use @magento add to contributors team command to join Contributors team.

@magepro-dev
Copy link
Member

@magento add to contributors team

@m2-assistant
Copy link

m2-assistant bot commented Dec 31, 2021

Hi @magepro-dev! 👋
Thank you for joining. Please accept team invitation 👉 here 👈 and add your comment one more time.

@magepro-dev
Copy link
Member

@magento I am working on this

@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in Low Priority Backlog Dec 31, 2021
magepro-dev pushed a commit to magepro-dev/magento2 that referenced this issue Dec 31, 2021
magepro-dev pushed a commit to magepro-dev/magento2 that referenced this issue Jan 1, 2022
@dudzio12
Copy link
Member Author

It's already fixed by #33892.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Design/Frontend Component: Code Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P4 No current plan to fix. Fixing can be deferred as a logical part of more important work. Progress: done Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Severity: S4 Affects aesthetics, professional look and feel, “quality” or “usability”. Triage: Dev.Experience Issue related to Developer Experience and needs help with Triage to Confirm or Reject it
Projects
6 participants