Skip to content

fix(a11y): preserve heading order in footer#82

Merged
balajmarius merged 1 commit into
mainfrom
fix/a11y-footer-heading-order
May 27, 2026
Merged

fix(a11y): preserve heading order in footer#82
balajmarius merged 1 commit into
mainfrom
fix/a11y-footer-heading-order

Conversation

@ErolP18
Copy link
Copy Markdown
Collaborator

@ErolP18 ErolP18 commented May 27, 2026

Lighthouse flagged the footer section headings because the visual h4 variant renders as semantic

, which skips heading levels on pages where the footer follows h1/h2 content.

Keep the existing h4 visual style but render the footer navigation section titles as

. Footer sections are top-level landmark content, and

avoids skipped heading levels across pages that may or may not include intermediate headings before the global footer.

Summary

Brief description of changes.

Changes

  • Change 1
  • Change 2

Claudebin Session

🔗 Session Link

Testing

How did you test this?

Checklist

  • bun check passes
  • bun type-check passes
  • Tested locally
  • Claudebin session link attached

Lighthouse flagged the footer section headings because the visual h4
variant renders as semantic <h4>, which skips heading levels on pages
where the footer follows h1/h2 content.

Keep the existing h4 visual style but render the footer navigation
section titles as <h2>. Footer sections are top-level landmark content,
and <h2> avoids skipped heading levels across pages that may or may not
include intermediate headings before the global footer.

Co-authored-by: Cursor <cursoragent@cursor.com>
@balajmarius balajmarius merged commit adf9265 into main May 27, 2026
1 of 2 checks passed
@balajmarius balajmarius deleted the fix/a11y-footer-heading-order branch May 27, 2026 13:44
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.

2 participants