-
Notifications
You must be signed in to change notification settings - Fork 2
Remove Instances of first-of-type selectors
#42
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
base: stage
Are you sure you want to change the base?
Conversation
commit ba3fb90 Author: Eric Chen <159481679+echen-adobe@users.noreply.github.com> Date: Thu Dec 4 13:37:38 2025 -0600 updated selectors for template-x removed usage of div first child, last child, first of type, last of type
commit c95aaca1da09e33513f9c601c98cefde15264804
Author: Eric Chen <159481679+echen-adobe@users.noreply.github.com>
Date: Fri Dec 5 10:37:31 2025 -0600
Update quotes.js
commit ef2ec70
Merge: de89a62 e1d0bd2
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Dec 4 10:59:56 2025 -0800
Merge pull request #808 from adobecom/test-gen-blocks
Test gen blocks
commit e1d0bd2
Merge: 66b62bf de89a62
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Dec 4 09:22:28 2025 -0800
Merge branch 'stage' into test-gen-blocks
commit 66b62bf
Merge: 4e6feae c977780
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Dec 4 05:27:13 2025 -0800
additional blocks and merge with stage
commit 4e6feae
Author: Haris Bijli <all46558@adobe.com>
Date: Tue Dec 2 13:37:38 2025 -0800
link-list-v2 and pricing-table
commit 190f25c
Author: Haris Bijli <all46558@adobe.com>
Date: Sun Nov 30 20:23:05 2025 -0800
more blocks
commit 3183867
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Nov 20 08:46:42 2025 -0800
new blocks:
commit a4ad610
Merge: aecbecc e80982c
Author: Haris Bijli <all46558@adobe.com>
Date: Fri Nov 14 23:27:56 2025 -0800
Merge branch 'stage' into test-gen-blocks
merge from stage
commit aecbecc
Merge: 0a7fc96 b6e14f1
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Nov 13 15:15:20 2025 -0800
Merge branch 'stage' into test-gen-blocks
commit 0a7fc96
Merge: cd17dd0 5c1475d
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Nov 13 14:27:03 2025 -0800
Merge branch 'stage' into test-gen-blocks
commit cd17dd0
Author: Haris Bijli <all46558@adobe.com>
Date: Thu Nov 13 12:44:29 2025 -0800
test-gen blocks
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
|
| block.querySelector('.column')?.prepend(logo); | ||
| } | ||
| } | ||
| const sections = Array.from(document.querySelectorAll('main > div > div ')).filter((section) => section.dataset.manifestId === undefined); |
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.
| const sections = Array.from(document.querySelectorAll('main > div > div ')).filter((section) => section.dataset.manifestId === undefined); | |
| const sections = Array.from(document.querySelectorAll('main > div > div')).filter((section) => section.dataset.manifestId === undefined); |
| function adjustTemplateDimensions(block, props, tmplt, isPlaceholder) { | ||
| const overlayCell = tmplt.querySelector(':scope > div:last-of-type'); | ||
| const divs = tmplt.querySelectorAll(':scope > div'); | ||
| const overlayCell = divs[2]; |
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.
Are we always accounting there would be three divs? would it be safer to get the last one instead: const overlayCell = divs[divs.length - 1];
|
Can you add a more reliable list of regression testing links here? |
Summary
Briefly describe the features or fixes introduced in this PR.
Replaces fragile CSS selectors such as
:first-of-typein blocks to prevent certain edge cases caused by MEP overwriting content.Jira Ticket
Resolves: https://jira.corp.adobe.com/browse/MWPW-184504
Test URLs
Verification Steps
Potential Regressions
Additional Notes
(If applicable) Add context, related PRs, or known issues here.