Skip to content

Microsoft To Do: move the call to action into the header - #172

Merged
pixari merged 1 commit into
mainfrom
home/ms-todo-nav
Nov 24, 2026
Merged

pixari merged 1 commit into
mainfrom
home/ms-todo-nav

Conversation

@pixari

@pixari pixari commented Nov 24, 2026

Copy link
Copy Markdown
Member

Moves the Microsoft To Do call to action out of the home page hero and into the header, as the owner asked.

What changes

  • Header, every page: a plain nav link, "Leaving Microsoft To Do?" (German "Von Microsoft To Do wechseln?", other languages the existing short question), just before Try the demo. It uses the nav's muted link style at 0.875rem, so Try the demo stays the only button. Links to /blog/leaving-microsoft-to-do/; translated pages carry hreflang="en".
  • Below 960 px (the actual breakpoint where the header becomes the <details> menu): the link is the menu's last link, after Star on GitHub. The header row stays brand, Try the demo, menu button. No sideways scroll at 360 px.
  • 960 to 1199 px: the link is left out. There isn't room beside the six nav links (the German header already fills the row). From 1200 px the nav links and tools sit slightly closer (padding 0.7 to 0.5rem, tools gap 0.5 to 0.25rem) so the German header fits without squeezing the brand. I checked every language at 1200 px, and none overflows.
  • Home page: the line under the hero is gone.
  • End date unchanged: a build after 2027-06-30 (UTC) leaves the link out.

How to remove it

  1. Delete src/components/MsTodoLink.astro.
  2. Delete its import and its two <MsTodoLink … /> lines in src/components/SiteHeader.astro.
  3. Delete the .header-ms-todo block in src/styles/site.css.
  4. Delete the "Microsoft To Do link" test in tests/no-js.spec.ts.

Spec

openspec/changes/ms-todo-home-notice is rewritten for the header link: proposal, tasks and the spec delta (three requirements). openspec validate ms-todo-home-notice --strict passes.

Checks

npm run check, npm test (118), npm run build, npm run check:dist, npm run test:browser (415 passed, including the updated no-JS test at 1280 px and at 360 px with the menu open).

No new dependency, no script, about 150 bytes of HTML per page.


Generated by Claude Code

…header

A quiet nav link just before Try the demo (from 1200 px) and the last link of the
menu below 960 px, on every page, in the page's language, until 2027-06-30.
The home page line is gone. One component (src/components/MsTodoLink.astro),
two lines in SiteHeader.astro, one CSS block (.header-ms-todo).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0187cnkXBm72ZSggGvrvUMKW
@github-actions

Copy link
Copy Markdown
Contributor

Preview: download the built site for e6f5318, unzip it and run npx serve in the folder (kept for 14 days).

@pixari
pixari merged commit 33ccf1e into main Nov 24, 2026
4 checks passed
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.

2 participants