Fix heading hierarchy and restore proper heading levels (#1261) - #1350
Fix heading hierarchy and restore proper heading levels (#1261)#1350dougchestnut wants to merge 1 commit into
Conversation
…#1261) Updates headings across templates and components to follow semantic hierarchy: - Update top-level page titles to h1 and adjust section/subsection levels (h2, h3). - Introduce helper typography classes in app.css (.brand-header-title, .page-heading, .section-title, .subsection-title, .block-title). - Update tests matching new heading selectors. Fixes eclipse-pass/main#1261 Signed-off-by: Doug Chestnut <dougchestnut@gmail.com>
|
|
Looks good for me when I test locally. The failing integration tests are probably caused because the selectors for various html elements are no longer correct. |
|
Thanks for taking this on — the semantic retagging is sound on almost every route, and I verified the lint story and CSS cascade locally. A few things need attention before merge, though, including two deterministic CI breaks. Blocking1. The acceptance suite will fail deterministically. The testcafe page models in pass-acceptance-testing select headings by tag name:
Coordinated selector updates need to land in pass-acceptance-testing alongside this PR. 2. A silent false-negative in the policies page model. 3. The dashboard still violates the issue's goal. It now renders two Visual/CSS regressions (verified against the cascade in a local build)4. The new type scale is inverted. 5. h1 renders at two different sizes depending on route. Untouched routes (grants/submissions index + detail, thanks) keep the global 6. Latent branding-font regression. 7. Fixed sizing replaces Bootstrap's responsive scaling. The old h4s sized responsively ( 🤖 Generated with Claude Code |
|
@dougchestnut, thank you for doing this work! Just flagging here that while I did have an agent generate the above comment I did run through and manually validate the concerns expressed therein. |



Description
Addresses accessibility and semantic heading hierarchy issues identified in eclipse-pass/main#1261.
Changes
<h1>across templates (dashboard,not-found-error,workflow-wrapper).<span>(brand-header-title).<h2>,<h3>) throughout workflow and detail pages (grants/detail,submissions/detail,workflow-grants,workflow-repositories,workflow-review,policy-card).app.css(.brand-header-title,.page-heading,.section-title,.subsection-title,.block-title) to decouple semantic structure from visual presentation and preserve visual styling.workflow-grants-test.ts).Issue
Fixes eclipse-pass/main#1261