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>
9 files changed,
+187
−45
fixtures/strip.mjs+11 −0fixtures/strip.test.mjs+56 −0internal/slides/credits/assets.json+1 −1internal/slides/editor.go+4 −1internal/slides/static/{editor.8669e7d311705e9b.js => editor.7597f74bc62422a4.js}+13 −13internal/slides/static/editor.css+9 −11internal/slides/templates/editor.html+8 −2internal/slidestest/browser_quieter_test.go+70 −16internal/slidestest/quieter_test.go+15 −1
fixtures/strip.mjsLoading diff…
fixtures/strip.test.mjsLoading diff…
internal/slides/credits/assets.jsonLoading diff…
internal/slides/editor.goLoading diff…
internal/slides/static/{editor.8669e7d311705e9b.js => editor.7597f74bc62422a4.js}Loading diff…
internal/slides/static/editor.cssLoading diff…
internal/slides/templates/editor.htmlLoading diff…
internal/slidestest/browser_quieter_test.goLoading diff…
internal/slidestest/quieter_test.goLoading diff…