Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions actions/plp-renderer/templates/product-listing.hbs
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<h1>{{categoryName}}</h1>
<div class="breadcrumb">
<div>
<div>

@svera svera May 8, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't nav more semantic for breadcrumbs?

https://developer.mozilla.org/en-US/docs/Web/CSS/How_to/Layout_cookbook/Breadcrumb_navigation

There is also an aria label specific for them

<ol>
{{#each breadcrumbs}}
<li><a href="{{url}}">{{name}}</a></li>
{{/each}}
</ol>
</div>
</div>
</div>
<div class="product-list-page">
<div>
<div>urlPath</div>
<div>{{categorySlug}}</div>
</div>
<div>
<div>
<nav class="breadcrumb" aria-label="Breadcrumb">
<ol>
{{#each breadcrumbs}}
<li><a href="{{url}}">{{name}}</a></li>
{{/each}}
</ol>
</nav>
</div>
</div>
{{#if categoryDescription}}
<div>
<div><h2>Description</h2></div>
Expand Down
4 changes: 2 additions & 2 deletions e2e/plp-ssg.e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ describe(`PLP e2e - slug: ${slug}`, () => {
}
});

test('breadcrumb nav exists with at least one link', () => {
const breadcrumbLinks = $('nav.breadcrumb a');
test('breadcrumb div exists with at least one link', () => {
const breadcrumbLinks = $('div.breadcrumb a');
expect(breadcrumbLinks.length).toBeGreaterThan(0);
breadcrumbLinks.each((_, el) => {
const href = $(el).attr('href');
Expand Down
Loading