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

[MWPW-169395] - Table aria labels missing #3875

Merged
merged 5 commits into from
Apr 9, 2025
Merged

Conversation

DKos95
Copy link
Contributor

@DKos95 DKos95 commented Mar 28, 2025

This resolves the issue where aria-labels were missing from Table CTA's, the main problem here was that Table.js and Merch.js are being executed in parallel and in the Table.js we were earlier using innerHtml to change the Table when the user resized or filtered the the tables in mobile mode, this caused the aria-labels that were being set in Merch.js to be set on the old table which was being replaced with a new table in Table.js, also columns were being removed from the DOM in curtain situations which was an additional problem causing the removal of aria-labels.

Dev Notes
Leaving this part in.table .hide-mobile { display: none !important; }. We would need to list at least 5 classes with high css specificity to override the display properties of some elements that need to be hidden, seems to be a safer option here and less lines.

QA Notes
It would be a good idea to test all the functionalities of the table since with this PR we are no longer using innerHtml which was at the core of the tables functionalities, especially filtering on mobile and the resizing of the screen.
List of Pages where Tables are present

Resolves: MWPW-169395

Test URLs:

CC Merch Test URLs

@DKos95 DKos95 added the high-impact Any PR that may affect consumers label Mar 28, 2025
@DKos95 DKos95 requested a review from a team March 28, 2025 11:54
Copy link
Contributor

aem-code-sync bot commented Mar 28, 2025

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link
Contributor

aem-code-sync bot commented Mar 28, 2025

@aem-code-sync aem-code-sync bot temporarily deployed to table-aria-labels March 28, 2025 16:04 Inactive
Copy link
Contributor

@overmyheadandbody overmyheadandbody left a comment

Choose a reason for hiding this comment

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

Looking good for the most part, I also checked this on https://table-aria-labels--milo--adobecom.hlx.page/drafts/sarchibeque/table/add-on?martech=off, where the logic for the special labels was originally added.

I just have a couple of notes for now.

@aem-code-sync aem-code-sync bot temporarily deployed to table-aria-labels March 31, 2025 12:17 Inactive
Copy link
Contributor

@mokimo mokimo left a comment

Choose a reason for hiding this comment

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

Few code style suggestions, but looks good already. Feel free to take up the suggestions where you prefer.

Copy link
Contributor

github-actions bot commented Apr 3, 2025

Reminder to set the Ready for Stage label - to queue this to get merged to stage & production.

@aem-code-sync aem-code-sync bot temporarily deployed to table-aria-labels April 3, 2025 15:59 Inactive
Copy link

@NadiiaSokolova NadiiaSokolova left a comment

Choose a reason for hiding this comment

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

Verified. Ready for Stage.
Testing details https://jira.corp.adobe.com/browse/MWPW-169395

@milo-pr-merge milo-pr-merge bot merged commit 803c2cb into stage Apr 9, 2025
16 of 17 checks passed
@milo-pr-merge milo-pr-merge bot deleted the table-aria-labels branch April 9, 2025 19:31
@milo-pr-merge milo-pr-merge bot mentioned this pull request Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high-impact Any PR that may affect consumers Ready for Stage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants