Commit 4256ada
committed
nav: home emoji (text-variation), "Parts:" label, SW skip on localhost
Three related changes after testing the TOC flow locally.
1. Home pill: plain-text "TOC" / "Index" / "All parts" all read as
visual noise. Swap to 🏠 with a trailing U+FE0E text-variation
selector so browsers render the outlined monochrome house glyph
instead of the full-color emoji. Tooltip + aria-label carry the
semantic name ("Back to the walkthrough index") for keyboard + SR
users. Drop the `::before { content: '«' }` — the emoji itself is
the affordance.
2. Part pill labels: meander emits eight "Part N" pills, which reads
as repetitive "Part 1 Part 2 Part 3…". walkthrough-drag.js now
rewrites pill text to just "1", "2", …, "8" and prepends a
shared "Parts:" label. The label is a <span>, styled as a muted
uppercase column header, not a pill. Same-order read: 🏠 | Parts: | 1 2 3 4 5 6 7 8.
3. SW on localhost: installing the SW locally made rapid iteration
painful — the first load cached HTML/CSS, then every subsequent
edit served stale bytes until DevTools → Unregister + Clear site
data. Skip SW registration on localhost / 127.0.0.1 and proactively
unregister any prior SW so the next fetch goes to the network.
Production (GH Pages) registers normally — cache-first pays off
for real users.1 parent dba3a27 commit 4256ada
3 files changed
Lines changed: 63 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
498 | 503 | | |
499 | 504 | | |
500 | 505 | | |
501 | | - | |
502 | | - | |
503 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
504 | 514 | | |
505 | 515 | | |
506 | 516 | | |
| |||
592 | 602 | | |
593 | 603 | | |
594 | 604 | | |
595 | | - | |
| 605 | + | |
596 | 606 | | |
597 | 607 | | |
598 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
391 | 420 | | |
392 | 421 | | |
393 | 422 | | |
| 423 | + | |
394 | 424 | | |
395 | 425 | | |
396 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
695 | 695 | | |
696 | 696 | | |
697 | 697 | | |
698 | | - | |
699 | | - | |
700 | | - | |
701 | | - | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
702 | 704 | | |
703 | 705 | | |
704 | 706 | | |
705 | 707 | | |
706 | | - | |
707 | | - | |
708 | | - | |
709 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
710 | 721 | | |
711 | 722 | | |
712 | 723 | | |
| |||
0 commit comments