-
Notifications
You must be signed in to change notification settings - Fork 184
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
Conversation
|
There was a problem hiding this 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.
There was a problem hiding this 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.
Reminder to set the |
d8c4800
to
76684da
Compare
There was a problem hiding this 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
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
Before: https://main--cc--adobecom.hlx.page/cc-shared/fragments/merch/products/photoshop/compare-plans/table/individual/default?martech=off
After: https://main--cc--adobecom.hlx.page/cc-shared/fragments/merch/products/photoshop/compare-plans/table/individual/default?milolibs=table-aria-labels&martech=off
Before: https://main--cc--adobecom.hlx.page/cc-shared/fragments/merch/products/photoshop/compare-plans/table/edu/default?martech=off
After: https://main--cc--adobecom.hlx.page/cc-shared/fragments/merch/products/photoshop/compare-plans/table/edu/default?milolibs=table-aria-labels&martech=off