-
Notifications
You must be signed in to change notification settings - Fork 177
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-164131: Adding aria label for CTA using placeholder on name attributes of merch card #3505
base: stage
Are you sure you want to change the base?
Conversation
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #3505 +/- ##
==========================================
+ Coverage 96.47% 96.48% +0.01%
==========================================
Files 260 260
Lines 60415 60597 +182
==========================================
+ Hits 58284 58466 +182
Misses 2131 2131 ☔ View full report in Codecov by Sentry. |
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.
lgtm
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.
I think this logic should be in merch block (merch.js), not in merch-card block.
there are Merch CTAs outside of merch-cards and we could set a aria-label for them authomatically which means less authoring effort.
you could add it in the end of buildCTA method https://github.com/adobecom/milo/blob/stage/libs/blocks/merch/merch.js#L723
you can use 'onceSettled' promise on merch link, e.g. cta.onceSettled().then(...set aria-label);
we could and probably should have done it even deeper, in checkout-link/checkout-button web component, but imo for now Milo level of merch block is good enough.
Resolves: MWPW-164131
Test URLs:
Test for consumer URLs: