Rework Desktop and Mobile Nav UI#9
Conversation
Use a fixed flex-based desktop header with a matching body spacer so page content remains positioned below the header. Add the Ethereum logomark beside the site title. Add a mobile bottom bar for primary page actions, including scroll-to-top, search, and menu controls. Keep the scroll-to-top control in its layout slot with disabled muted styling until the page scroll position makes it available. Hide the bottom bar when it overlaps the footer unless the page height is too short to need footer avoidance. Add an explicit Home link to the shared navigation so the homepage path is visible in the navigation model. Introduce a shared navigation modal shell for mobile menu interactions. Use an inline SVG icon for the search entrypoint and restyle the existing search modal for the dark theme.
Render table-of-contents controls on EIP pages with TOC data and open the existing page TOC inside the shared navigation modal. Keep the mobile bottom bar layout stable by reserving the TOC slot on every page. Pages without TOC data render a muted decorative placeholder that is hidden from assistive technology. Add the book icon treatment to the page TOC heading so the section and navigation control share the same visual language.
|
When sharing portrait images in these threads here it would be good if you could use the html tag with a set width of 400px or so like: |
I'll level with you, I'm not going to frame choosing the best approach as distilling the most scientifically sound option. We don't have that data... there's different ways to go about this and without user testing or fieldwork it's trial-and-error for how it's received, so I use my best judgment to predict the psychology. I do think the change I just made based on your feedback should resolve the matter, but I will address your proposed implementation since you brought it up as an option. I would strongly recommend against implementing your proposed approach for a few reasons:
Granted the top-of-page icon floating on the bottom right is a common UI pattern, I don't think it's strong enough to significantly guide the overall direction here, and it fits well positioned within the bottom bar. |


Description
This PR reworks the theme's desktop and mobile nav UI to significantly improve usability and make browsing and wayfinding feel like first-class parts of the experience.
Closes #3
Demo site: wg-eips.ritovision.com
What's Changed
/to site navigationDesign and Rationale
Why sticky navigation on desktop and mobile?
The EIP site experience centers on browsing proposals, scanning long documents, jumping between sections, searching, and comparing related pages. Browsing and wayfinding are core parts of the experience, so navigation should remain easy to access throughout the page. Requiring users to scroll around to access navigation adds friction.
A sticky UI makes navigation more seamless by keeping key actions available while users move through long pages.
Persistent navigation also needs restraint. On desktop, the header height is intentionally limited so the nav can stay available while taking up as little vertical space as possible. On mobile, the bottom bar keeps key actions reachable without crowding the header or competing with the page content.
Why add
/to the site navigation?The homepage should be represented as an explicit navigation option alongside the other main site pages. Relying on the logo as the only way back to
/treats the homepage feel like a fallback destination rather than a clear part of the site navigation.This creates real usability confusion. I have personally run into this for years: whenever I land on the homepage first, navigate elsewhere, and then later want to return to it without thinking carefully about the URL structure. In those moments, the path back to the homepage is not obvious and I have often ended up clicking “All” instead and then getting confused when landing on the wrong page.
Adding
/as a visible nav item makes the site structure easier to understand and gives users a direct, predictable way to return home.Why flexbox instead of float-based desktop UI?
The desktop header is a row-based navigation layout with multiple elements that need consistent alignment and spacing. Flexbox handles that directly, making it a better fit than float-based layout for this UI.
Using flexbox also makes the header easier to maintain and adjust. The logo, nav links, and actions can be positioned through the layout model itself instead of relying on float behavior, manual clearing, or layout side effects.
This gives future contributors a more predictable structure to work with as the nav changes over time.
Bottom Bar
The bottom bar is a persistent nav UI system that appears on mobile/tablet breakpoints with 4 quick action buttons available and a responsive structure to accommodate additional buttons if needed.
It currently includes 4 buttons:
All four buttons visible

Bottom bar with additional 5th button
Notice the original buttons resize and reflow to allow an extra button to fit

The bottom bar also includes:
Why a bottom bar in the first place?
The initial constraint to manage on mobile is the length of the “Ethereum Improvement Proposals” title in the header. That text is long, but it is also the site’s identity, so I wanted to keep it prominent in the header instead of compressing it, wrapping controls around it, or forcing the whole navigation model into a single hamburger button.
A hamburger-only approach would make common actions less immediate. Even the hamburger button itself still competes for room in the header, and putting everything behind it would make the mobile experience feel less direct.
Moving key actions into a bottom bar solves both problems. It keeps the EIP branding clear at the top of the page while creating dedicated space for quick browsing actions: scroll to top, table of contents when available, search, and the main menu.
This also makes the mobile experience feel more deliberate and app-like rather than creating the impression that mobile navigation merely was bolted onto a desktop-first experience.
Table of Contents Navigation
All EIP pages include a table of contents, so the TOC is a consistent navigation structure across the site. This PR makes that structure easier to access from the nav UI, turning an existing first-class page element into a faster way to move through long documents.
The TOC button appears in both the desktop nav UI and the mobile bottom bar only when a page has a TOC. It opens a modal populated from the page’s TOC, letting users jump between sections without scrolling back to the inline TOC.
This is especially useful on mobile, where long pages are harder to scan and section navigation benefits from being compact and close at hand.
Since there is not a single universally recognized table of contents icon, I chose an open-book icon to represent the TOC action in the nav UI while placing it inline in the “Table of Contents” heading to create a meaningful association for users.
Mobile icon
Notice the bottom left open-book icon, matching the icon in the TOC page heading

Desktop icon
Notice the top right open-book icon, matching the icon in the TOC page heading

Opened modal
Screenshots
Mobile Menu — Before and After
Before
After