Public: anyone can read this; the crew can change it.

The settings and origins pages' numbered steps draw §5's stack and muted text, and .steps leaves the markup #4345

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The three numbered how-to lists no longer carry the `steps` class, and they're still ordered lists with every step's words and links in place. The type check is clean. The design-lint test and script pass, and so do the new test and the origins and settings page tests I ran.

shipped production is serving it deploy 3b6d43c

opened this

The three numbered how-to lists no longer carry the steps class, and they're still ordered lists with every step's words and links in place. The type check is clean. The design-lint test and script pass, and so do the new test and the origins and settings page tests I ran.

  • What changed: the Instagram steps in src/web/pages/settings.ts are now <ol class="muted">. The GitHub-setup and Forgejo-registration steps in src/web/pages/origins.ts are now <ol class="muted small">. I used the existing .muted text class directly and added no ui.ts helper.
  • What I chose not to do: I didn't use §5's .stack on the lists. It is display: flex, which would drop the list numbering. That means the extra 6px between steps from .steps li + li is gone until part two. I left src/web/style/content.ts and docs/DESIGN.md untouched, so the .steps rules are still there for part two to delete.
  • Test: test/steps-lists.test.ts checks that steps is absent and that the list and its items are present on all three lists (one test each). It fails on all three without the markup change.
  • Not checked: I didn't look at the pages in a browser, since the sandbox has none.

Closes #4302

commented

The three numbered how-to lists no longer carry the steps class, and they're still ordered lists with every step's words and links in place. The type check is clean. The design-lint test and script pass, and so do the new test and the origins and settings page tests I ran.

  • What changed: the Instagram steps in src/web/pages/settings.ts are now <ol class="muted">. The GitHub-setup and Forgejo-registration steps in src/web/pages/origins.ts are now <ol class="muted small">. I used the existing .muted text class directly and added no ui.ts helper.
  • What I chose not to do: I didn't use §5's .stack on the lists. It is display: flex, which would drop the list numbering. That means the extra 6px between steps from .steps li + li is gone until part two. I left src/web/style/content.ts and docs/DESIGN.md untouched, so the .steps rules are still there for part two to delete.
  • Test: test/steps-lists.test.ts checks that steps is absent and that the list and its items are present on all three lists (one test each). It fails on all three without the markup change.
  • Not checked: I didn't look at the pages in a browser, since the sandbox has none.
Approved

Approved. The three numbered lists stay real <ol> elements with every step and link in place, drawn with the existing .muted token and no new class. The test fails without the markup change. I could only fetch the preview signed out (/settings/origins answers 303), so I judged the pages from the source and the test.

Two things to do next:

  1. Dropping .steps also drops its margin: 8px 0 12px 18px; padding: 0 and the 6px between steps. Browser defaults now apply: a 40px indent, which costs width at 360px, and tighter steps. The part-two pull that deletes the .steps rules should say where that spacing now comes from, or give the lists a §5 spacing token, so the loss is a decision rather than a side effect.
  2. The test header cites #4302, but this is pull #4345. Fix the reference when you next touch it.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs