Skip to content

fix: open one main landmark on the shop pages - #12

Merged
ogorzalka merged 2 commits into
mainfrom
fix/single-main-landmark
Sep 28, 2026
Merged

ogorzalka merged 2 commits into
mainfrom
fix/single-main-landmark

Conversation

@ogorzalka

@ogorzalka ogorzalka commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

The layout (layouts/app.blade.php) opens div#primary and main#main. WooCommerce's default content wrapper (woocommerce_output_content_wrapper / _end, hooked on woocommerce_before_main_content / woocommerce_after_main_content) opened both a second time inside them, on every page WooCommerce renders — not only the product search noted in the handover. Two main landmarks, two elements with id="main" and two with id="primary".

The theme removes the wrapper on woocommerce_init, as it already does for the breadcrumb.

Checked on pollora-test

Page <main> before after
shop, category, product search, product page 2 1
cart, my account, site search, home 1 1

A new spec, "each shop page has one main landmark" (shop.spec.ts), checks the product grid, a product page, a product search and the cart. Replayed: without the fix it fails (product grid: main elements, expected 1, received 2); with it, it passes.

Also: CI of the develop leg

Since framework #335 aliases develop to 13.x-dev, composer show pollora/framework lists ["13.x-dev", "dev-develop"]. The step fetching the framework's E2E harness read .versions[0] and tried to clone a branch named 13.x-dev (Remote branch 13.x-dev not found), failing both "framework develop" legs of any run. It now picks develop when dev-develop is anywhere in the list. Checked with jq on the three shapes (["13.x-dev","dev-develop"], ["dev-develop"], a tag) and by this PR's run: all 6 jobs green.

The layout opens div#primary and main#main. WooCommerce's default content
wrapper opened both a second time, inside them, on every page it renders:
product grid, product page, search, cart. Two main landmarks, and two
elements sharing each id. The theme now removes that wrapper.
The framework aliases develop to 13.x-dev since #335, so composer show lists
13.x-dev before dev-develop and the develop leg tried to clone a branch named
13.x-dev.
@ogorzalka
ogorzalka merged commit 24e6ddd into main Sep 28, 2026
6 checks passed
@ogorzalka
ogorzalka deleted the fix/single-main-landmark branch September 28, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant