Skip to content

MWPW-187017: Correctly decorate double tag CTAs#5820

Open
zagi25 wants to merge 1 commit intostagefrom
mwpw-187017-double-tag-cta
Open

MWPW-187017: Correctly decorate double tag CTAs#5820
zagi25 wants to merge 1 commit intostagefrom
mwpw-187017-double-tag-cta

Conversation

@zagi25
Copy link
Copy Markdown
Contributor

@zagi25 zagi25 commented Apr 16, 2026

Issue: If CTA link is both bold and italic, on newly previewed pages tag that is returned is:
<em><strong><a href="https://www.adobe.com/products/special-offers.html">Découvrir nos offres spéciales</a></strong></em>
Current logic, treats this only as strong resulting in blue button

  • Check if strong tag has em parent

Example:

  • Old DC page: <strong><em><a href="">More tutorials</a></em></strong> -> outline btn
  • Imported DA DC page: <em><strong><a href="">More tutorials</a></strong></em> -> blue btn

Resolves: MWPW-187017

Test URLs:

DC URLs:

BACOM URLs:

CC URLs:

@zagi25 zagi25 requested a review from a team April 16, 2026 06:54
@zagi25 zagi25 added the high-impact Any PR that may affect consumers label Apr 16, 2026
@aem-code-sync
Copy link
Copy Markdown
Contributor

aem-code-sync bot commented Apr 16, 2026

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

  • Re-sync branch
Commits

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants