FerrLabs: the site menu works on phones

On ferrlabs.com the phone menu now covers the whole screen with a solid background, closes with Escape and keeps the page behind it still.


On a phone, opening the menu on ferrlabs.com showed a strip 72 pixels tall with the links spilling over the page behind it, which made them hard to read.

A full-screen menu. The menu now fills the screen with the same background as the page, so the links are the only thing you see.

Keyboard and screen readers. Escape closes the menu. Focus moves to the Close button when it opens and goes back to the Menu button when it closes, and the page behind cannot be reached or scrolled while it is open. The short fade is skipped when your system asks for reduced motion.

The top bar stays in place. The bar with the logo and the menu button now stays at the top while you scroll, with a plain background instead of a blur.

→ See the PR