Repository navigation
docs: footer stays at the bottom of short pages - #100
Merged
Merged
Conversation
BaseStyles' div sits between #__docusaurus (a column flex box) and the navbar, .main-wrapper and footer. It now grows in the root and is a column flex box itself, so .main-wrapper's flex: 1 fills short pages (404, short Markdown pages) again.
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the wrapper layout change intended to keep short-page footers at the viewport bottom.
No open issues 🎉
What changed in this PR
Keeps the documentation footer at the bottom of short pages by restoring flex growth through Primer’s BaseStyles wrapper.
Changes:
- Makes the wrapper a growing column flex container so
.main-wrappercan fill available space. - Adds a comment explaining the layout requirement while preserving inherited typography and color.
| File | Description |
|---|---|
docs/src/theme/PrimerRoot.tsx |
Adds flex layout styles to the Primer wrapper to keep short-page footers at the viewport bottom. |
Review effort: Balanced
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.
Primer's BaseStyles div sits between
#__docusaurus(a column flex box) and the navbar,.main-wrapperand footer, so.main-wrapper'sflex: 1no longer filled the viewport and the footer rose on short pages (404, short Markdown pages). The div now grows in the root and is a column flex box itself.