Skip to content

MWPW-176237 M@S Plans merch cards: TITLE field and aria label#3

Open
bozojovicic wants to merge 1 commit intomwpw175674a11yfrom
mwpw176237
Open

MWPW-176237 M@S Plans merch cards: TITLE field and aria label#3
bozojovicic wants to merge 1 commit intomwpw175674a11yfrom
mwpw176237

Conversation

@bozojovicic
Copy link
Owner

@bozojovicic bozojovicic commented Jul 17, 2025

For links and CTAs in mas cards use aria-label values also for title attributes if link/CTA doesn't already have the title authored in mas studio.

Resolves: MWPW-176237

Test page below. Links/CTA on the last card have the title authored. In first two cards the value of aria-label is used.

Test URLs:

@aem-code-sync
Copy link

aem-code-sync bot commented Jul 17, 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

@aem-code-sync
Copy link

aem-code-sync bot commented Jul 17, 2025

Page Scores Audits Google
📱 /drafts/bozo/pr/a11y?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI
🖥️ /drafts/bozo/pr/a11y?martech=off PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

Choose a reason for hiding this comment

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

⚠️ [eslint] reported by reviewdog 🐶
File ignored because of a matching ignore pattern. Use "--no-ignore" to override.

@bozojovicic bozojovicic marked this pull request as ready for review July 17, 2025 13:20
} else {
const productName = card.querySelector('h3')?.textContent || '';
link.setAttribute('aria-label', `${link.textContent}${productName ? ' - ' : ''}${productName}`);
const ariaLabel = `${link.textContent}${productName ? ' - ' : ''}${productName}`;
Copy link

Choose a reason for hiding this comment

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

nit: ctaDetails

bozojovicic pushed a commit that referenced this pull request Sep 9, 2025
* MWPW-179531-179764 Brand Concierge - Update Error and Loading Messages

* MWPW-179921-179531 Brand Concierge Styling Config (#3)

* remove new message border

* remove prompt suggestion border
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants