oficina / slides Public

Editor: dismissing the card returns focus to a control you can see

Opened from a menu (View's Inspector row, Delete slide in the Slide
menu or a strip item's menu), the card now remembers the menu's own
button, its summary, rather than the row, which is hidden once the
menu closes. A return target that cannot take focus when the card is
dismissed (gone, disabled, not drawn) falls back to Format, and a
focus() that does not land does too. Format gets aria-label="Format",
since it is its icon alone in a narrow window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 13a00811b6d17d6385e342dfa9073eb9b2a18d12 parent 79fa1d6
7 files changed, +230 −25
  • fixtures/head.mjs +32 −7
  • fixtures/head.test.mjs +91 −4
  • internal/slides/credits/assets.json +1 −1
  • internal/slides/static/{editor.014dc9dc11538dd3.js => editor.9ed13c9265c27119.js} +12 −12
  • internal/slides/templates/editor.html +1 −1
  • internal/slidestest/browser_editor_tidy_test.go +90 −0
  • internal/slidestest/editor_tidy_test.go +3 −0
fixtures/head.mjs

Loading diff…

fixtures/head.test.mjs

Loading diff…

internal/slides/credits/assets.json

Loading diff…

internal/slides/static/{editor.014dc9dc11538dd3.js => editor.9ed13c9265c27119.js}

Loading diff…

internal/slides/templates/editor.html

Loading diff…

internal/slidestest/browser_editor_tidy_test.go

Loading diff…

internal/slidestest/editor_tidy_test.go

Loading diff…