Repository navigation
Expose the landing hero title as the primary heading - #78010
Conversation
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Visual regression check: docs previewCaptured the built docs at
Accessibility snapshot
Limitations
References: §43683089433
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: 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.
|
There was a problem hiding this comment.
🟢 Approval recommended
The focused change promotes all three switchable hero titles to accessible primary headings and updates homepage accessibility coverage for the expected heading structure, with no active issues identified.
No open issues 🎉
What changed in this PR
This pull request promotes each switchable landing-page hero title to an accessible primary heading while preserving the existing visual styling.
Changes:
- Converted all three hero titles from
<h2>to<h1>. - Updated homepage accessibility tests to verify one exposed primary heading and the expected heading level across variants.
| File | Description |
|---|---|
| docs/tests/homepage-accessibility.spec.ts | Verifies one exposed primary heading and <h1> usage across all hero variants. |
| docs/src/components/landing/HeroVD.astro | Promotes the Hero D title to <h1>. |
| docs/src/components/landing/HeroVC.astro | Promotes the Hero C title to <h1>. |
| docs/src/components/landing/HeroVA.astro | Promotes the Hero A title to <h1>. |
Review effort: Lite (dynamic)
|
🎉 This pull request is included in a new release. Release: |
The landing page’s hero title should provide a clear
<h1>for screen-reader users and document navigation while preserving its visual design.<h1>; shared styles preserve the existing appearance.