Skip to content

Use a single page-level heading on the homepage - #74795

Merged
pelikhan merged 2 commits into
mainfrom
copilot/fix-heading-hierarchy-issue
Nov 4, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/fix-heading-hierarchy-issue

Conversation

Copilot AI commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

The homepage exposed multiple visible <h1> elements, making its heading hierarchy ambiguous. Keep the page title as the sole <h1> and use <h2> for the alternate hero headlines.

  • Heading hierarchy: Convert all three hero variants to <h2> and preserve their existing visual styling.
  • Regression coverage: Assert one page-level <h1> and <h2> headings for every hero variant; existing responsive navigation coverage remains unchanged.
<h1>GitHub Agentic Workflows</h1>
<h2>AI-powered workflows for GitHub</h2>

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix ambiguous heading hierarchy for homepage Use a single page-level heading on the homepage Nov 4, 2026
Copilot AI requested a review from gh-aw-bot November 4, 2026 07:56
@pelikhan
pelikhan marked this pull request as ready for review November 4, 2026 15:13
Copilot AI auto review requested due to automatic review settings November 4, 2026 15:13
@pelikhan
pelikhan merged commit 3252a49 into main Nov 4, 2026
18 checks passed
@pelikhan
pelikhan deleted the copilot/fix-heading-hierarchy-issue branch November 4, 2026 15:13
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

An active nit remains because the accessibility test checks only an aggregate h2 count rather than enforcing exactly one h2 within each variant.

1 open issue
What changed in this PR

Updates the homepage heading hierarchy so the page title remains the sole <h1>, while all three alternate hero variants use styled <h2> headings.

Changes:

  • Converts Hero A, C, and D headlines from <h1> to <h2>.
  • Preserves the existing visual styling for both heading levels.
  • Adds accessibility regression coverage for the homepage heading hierarchy.
File Description
docs/​tests/​homepage-accessibility.spec.ts Adds heading hierarchy regression coverage and retains existing accessibility checks.
docs/​src/​components/​landing/​LandingHero.astro Applies shared hero heading styling to both <h1> and <h2>.
docs/​src/​components/​landing/​HeroVD.astro Changes the Continuous AI hero headline to <h2>.
docs/​src/​components/​landing/​HeroVC.astro Changes the coding-agents hero headline to <h2>.
docs/​src/​components/​landing/​HeroVA.astro Changes the AI-powered workflows hero headline to <h2>.

This pull request is ready to be approved.

Review effort: Lite (auto)


await expect(page.getByRole("heading", { level: 1 })).toHaveCount(1);
await expect(page.locator("#hero [data-variant] h1")).toHaveCount(0);
await expect(page.locator("#hero [data-variant] h2")).toHaveCount(3);
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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.

🔍 Multi-Device Docs Testing Report - 2026-11-03

4 participants