Skip to content

Move the organisation footer out of main, so docs pages have a footer landmark - #54

Merged
stphnwlsh merged 2 commits into
mainfrom
fix/docs-footer-landmark
Dec 2, 2026
Merged

stphnwlsh merged 2 commits into
mainfrom
fix/docs-footer-landmark

Conversation

@stphnwlsh

Copy link
Copy Markdown
Member

Summary

Starlight renders the footer inside <main>, so the organisation footer (Support, Security, Contributing, Accessibility, Brand, Sponsor) read as part of every docs page, and screen readers found no footer landmark. Starlight doesn't let us override Page.astro, where <main> lives, so this overrides TwoColumnContent, the component that wraps it, and renders the footer straight after </main>. The footer moves to OrgFooter.astro, and the Footer override goes, since Starlight's own footer (Edit page, Last updated, Previous and Next) belongs inside <main> and is unchanged.

TwoColumnContent.astro is a copy of Starlight 0.42.8's, so the site README now says to diff it on a Starlight upgrade. <main>'s 3vh bottom padding moves under the footer so the spacing stays the same.

Nothing moves on screen. In WebKit, the footer's position, size, the gap above it and the space below it match the live site to the pixel, in both themes, at 1440 and 390 wide, on a docs page and a splash page. An axe scan finds nothing new: the docs page passes one more landmark rule than live, and its one landmark-unique violation is the Expressive Code code blocks, already a known limitation on the statement. The custom home page isn't affected.

Related issues

Closes LeanMeanCleanApps/.github#124

Checklist

  • I ran what the README says to run, and it passed. npm run build, with all internal links valid.
  • I updated the README or docs if anything they describe changed.
  • The change is focused on one thing.

Still to do once it's deployed: run node accessibility/voiceover.mjs --only landmarks from the scripts repo, in Terminal, to hear the footer landmark on a docs page.

@stphnwlsh stphnwlsh self-assigned this Dec 2, 2026
@stphnwlsh
stphnwlsh merged commit fd1c6fb into main Dec 2, 2026
6 checks passed
@stphnwlsh
stphnwlsh deleted the fix/docs-footer-landmark branch December 2, 2026 21:58
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.

Give the docs pages a footer landmark

1 participant