feat: new Featured Grid component - #727
Conversation
|
Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
Commits
|
|
❌ Test ResultsStatus: Some tests failed! 🔍 Click to view failed testsTest Coverage ReportOverall Coverage Summary
Coverage by File/Directory
Coverage report generated at 2026-08-12T11:07:49.012Z |
There was a problem hiding this comment.
Since this is a new component let's use CSS nesting here.
An LLM should be able to easily do this.
| card.style.background = background; | ||
|
|
||
| const imageDiv = createTag('div', { class: 'feature-grid-card-image' }); | ||
| const image = imageSlot?.querySelector('picture img, img'); |
There was a problem hiding this comment.
querySelector('picture img, img') seems repetitive.
querySelector('img') should do the same.
| const picWidth = image.naturalWidth > 0 ? String(image.naturalWidth) : '80'; | ||
| imageDiv.appendChild( | ||
| createOptimizedPicture(image.src, image.alt, false, [{ width: picWidth }]), |
There was a problem hiding this comment.
No point in doing this naturalWidth stuff. We only display these at 40x40 size. Just pass '80' to optimize.
Unless I'm missing something.
davids-ensemble
left a comment
There was a problem hiding this comment.
For accessibility let's have a ul > li instead of divs.
Each card becomes a list item.
Make sure to add a role="list" on the ul because Safari drops the implicit one when list markers are hidden.
You will of course have to modify the CSS a bit as well.
|
And here's two of the things that Claude would want you to fix which are actually worth the result.
|
|
Ignore the review comments for now. |
Okay @davids-ensemble |

Description
Feat : Feature Grid Component
Jira
https://jira.corp.adobe.com/browse/DEVSITE-2523
Test URL
https://devsite-2523--adp-devsite-stage--adobedocs.aem.page/test/petheanraj/feature-grid
Screenshot