Repository navigation
Move the organisation footer out of main, so docs pages have a footer landmark - #54
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 overridePage.astro, where<main>lives, so this overridesTwoColumnContent, the component that wraps it, and renders the footer straight after</main>. The footer moves toOrgFooter.astro, and theFooteroverride goes, since Starlight's own footer (Edit page, Last updated, Previous and Next) belongs inside<main>and is unchanged.TwoColumnContent.astrois 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-uniqueviolation 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
npm run build, with all internal links valid.Still to do once it's deployed: run
node accessibility/voiceover.mjs --only landmarksfrom the scripts repo, in Terminal, to hear the footer landmark on a docs page.