Skip to content

Commit

Permalink
Merge pull request #283 from hlxsites/bug/post-form
Browse files Browse the repository at this point in the history
Updated the code
  • Loading branch information
pardeepgera23 authored Dec 27, 2023
2 parents 9282a49 + 4bc719e commit b9275aa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/aem.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,15 @@ function decorateButtons(element) {
a.classList.add('normal-text');
}
}
} else {
const up = a.parentElement;
if (
up.childNodes.length === 1
&& up.tagName === 'STRONG'
) {
a.setAttribute('target', '_blank');
a.classList.add('text-normal');
}
}
});
}
Expand Down

0 comments on commit b9275aa

Please sign in to comment.