Skip to content

Commit

Permalink
MWPW-157693 [MEP] Action area simplified selector does not work well …
Browse files Browse the repository at this point in the history
…with hero-marquee block (#2827)

* Make action-area more flexible

* unit test update
  • Loading branch information
vgoodric committed Sep 4, 2024
1 parent f7dc1e2 commit 264c998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/features/personalization/personalization.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ function modifySelectorTerm(termParam) {
section: 'main > div',
'primary-cta': 'p strong a',
'secondary-cta': 'p em a',
'action-area': 'p:has(em a, strong a)',
'action-area': '*:has(> em a, > strong a)',
};
const otherSelectors = ['row', 'col'];
const htmlEls = ['main', 'div', 'a', 'p', 'strong', 'em', 'picture', 'source', 'img', 'h'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { modifyNonFragmentSelector } from '../../../libs/features/personalizatio
const values = [
{
b: 'main section1 marquee action-area',
a: 'main > div:nth-child(1) .marquee p:has(em a, strong a)',
a: 'main > div:nth-child(1) .marquee *:has(> em a, > strong a)',
},
{
b: 'main > section1 .marquee h2',
Expand Down

0 comments on commit 264c998

Please sign in to comment.