oficina / slides Public

Strip: the slide's number is text, drawn once and said once

Q7 review, fix round 1. The CSS counter drew the number but Chromium
left it out of the link's name, so a screen reader heard the title and
no number (spec §6.1: the name is the number and the title).

- The server writes each item's number twice inside its link: a drawn
  span in the gutter, aria-hidden, and a visually hidden twin before
  the label. The label stays the title alone. The counter rules are
  gone, so no engine can say the number twice.
- strip.mjs renumbers both in relabel(), which every sync and flush
  ends with: adds, removes, drags, Alt+arrows and a colleague's change.
- Slide 1 of the sample deck is now "1 Welcome to Slides Current slide".
  Tests cover the names before and after moving slide 2 above slide 1,
  the renumbering in strip.mjs, the tooltip following a heading change,
  and Escape closing a right-clicked menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev d9e39f347bd022c7c2a5a71a88585bd86915b131 parent 7f6c395
9 files changed, +187 −45
  • fixtures/strip.mjs +11 −0
  • fixtures/strip.test.mjs +56 −0
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/editor.go +4 −1
  • internal/slides/static/{editor.8669e7d311705e9b.js => editor.7597f74bc62422a4.js} +13 −13
  • internal/slides/static/editor.css +9 −11
  • internal/slides/templates/editor.html +8 −2
  • internal/slidestest/browser_quieter_test.go +70 −16
  • internal/slidestest/quieter_test.go +15 −1
fixtures/strip.mjs

Loading diff…

fixtures/strip.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/editor.go

Loading diff…

internal/slides/static/{editor.8669e7d311705e9b.js => editor.7597f74bc62422a4.js}

Loading diff…

internal/slides/static/editor.css

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_quieter_test.go

Loading diff…

internal/slidestest/quieter_test.go

Loading diff…