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

Add aria-label to page jump #33067

Merged

Conversation

bradleybrecher
Copy link
Contributor

@bradleybrecher bradleybrecher commented May 25, 2021

Description (*)

Issue : 2.4.4 Link Purpose (In Context))

Summary: The same link text, ... is used for links going to different page jumps. Users might not know the difference between each ... if there is no explanation

Fix: Add an 'aria-label' which indicates the page the user is skipping to

Related Pull Requests

N/A

Fixed Issues (if relevant)

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)
  • All automated tests passed successfully (all builds are green)

Resolved issues:

  1. resolves [Issue] Add aria-label to page jump #33075: Add aria-label to page jump

@m2-assistant
Copy link

m2-assistant bot commented May 25, 2021

Hi @bradleybrecher. 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

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

For more details, please, 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, 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

@bradleybrecher
Copy link
Contributor Author

I will not make a test for this addition, so someone feel free to add it

@gabrieldagama
Copy link
Contributor

@magento create issue

@m2-assistant m2-assistant bot mentioned this pull request May 25, 2021
4 tasks
@gabrieldagama gabrieldagama added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label May 25, 2021
@m2-community-project m2-community-project bot removed this from Pending Review in Pull Requests Dashboard May 25, 2021
<a class="page next jump" title="" href="<?= $block->escapeUrl($block->getNextJumpUrl()) ?>">
<a class="page next jump"
title=""
aria-label="Skip to page <?= $block->escapeHtml($block->getNextJumpPage()) ?>"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you translate this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@blmage can you clarify further what you mean by "translate this"?

Copy link
Contributor

Choose a reason for hiding this comment

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

@bradleybrecher 'Skip to Page' should be translatable with __()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

change pushed & ready for another review

@m2-community-project m2-community-project bot moved this from Pending Review to Review in Progress in High Priority Pull Requests Dashboard May 26, 2021
@Den4ik Den4ik added Issue: needs update Additional information is require, waiting for response Progress: needs update and removed Issue: needs update Additional information is require, waiting for response labels May 26, 2021
@m2-community-project m2-community-project bot moved this from Review in Progress to Changes Requested in High Priority Pull Requests Dashboard May 26, 2021
@m2-community-project m2-community-project bot moved this from Changes Requested to Review in Progress in High Priority Pull Requests Dashboard May 26, 2021
@Den4ik Den4ik self-assigned this May 26, 2021
@Den4ik Den4ik self-requested a review May 26, 2021 20:15
@Den4ik
Copy link
Contributor

Den4ik commented Aug 13, 2021

@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.

@Den4ik
Copy link
Contributor

Den4ik commented Aug 13, 2021

@engcom-Alfa I don't know how you tests it, but QA Passed for me

Actual Result
2021-08-13-12-47-16@2x

@magento-engcom-team
Copy link
Contributor

Hi @Den4ik, thank you for the review.
ENGCOM-9108 has been created to process this Pull Request

@Den4ik
Copy link
Contributor

Den4ik commented Aug 13, 2021

@engcom-Alfa Looks like I understood.
Looks like you set ... to Anchor Text for Previous and Anchor Text for Next

Please follow little bit different scenario:

  1. Set Pagination Frame Skip to 1

@engcom-Alfa
Copy link
Contributor

@magento run Functional Tests B2B

@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.

@engcom-Alfa
Copy link
Contributor

@magento run Functional Tests CE

@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.

@engcom-Alfa
Copy link
Contributor

@magento run Functional Tests EE

@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.

@engcom-Alfa
Copy link
Contributor

engcom-Alfa commented Aug 26, 2021

@engcom-Alfa Looks like I understood.
Looks like you set ... to Anchor Text for Previous and Anchor Text for Next

Please follow little bit different scenario:

  1. Set Pagination Frame Skip to 1

Thank you so much for the input @Den4ik ! This helped to proceed further. Thanks a lot

@engcom-Alfa
Copy link
Contributor

engcom-Alfa commented Aug 26, 2021

✔️ QA Passed

Preconditions:

  1. Install a fresh Magento instance with sample data.

Manual testing scenario:

  1. Login to admin and navigate to Content>Configuration>Pagination

  2. Set the Pagination Frame to 2; Set the Pagination Frame Skip to 1; Save the changes (Admin>Content>Design>Configuration> Select Global Default website > Pagination)

  3. Front end: Navigate to Women>Tops; Scroll down the product listed page and check the pagination content with inspected tag's attributes.

Before: ✖️ There was no aria-label attribute to the link text ...

image

After: ✔️ aria-label attribute has been set to the link text ...

image

There is no additional regression is required since it is a aria-label attribute update to a particular link.

@engcom-Alfa engcom-Alfa moved this from Testing in Progress to Merge in Progress in High Priority Pull Requests Dashboard Aug 26, 2021
@magento-engcom-team magento-engcom-team merged commit f2e2cc1 into magento:2.4-develop Sep 23, 2021
@m2-assistant
Copy link

m2-assistant bot commented Sep 23, 2021

Hi @bradleybrecher, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@sidolov sidolov moved this from Merge in Progress to Recently Merged in High Priority Pull Requests Dashboard Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Component: Theme Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept Release Line: 2.4 Risk: low
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Issue] Add aria-label to page jump
7 participants