Files
Nariman Jelveh 2f98ae58d1 Keep keyboard focus in the Publish card when it redraws
The card redraws its markup when a publish starts and when it finishes.
That replaced the focused Publish button, so focus dropped to the page: a
keyboard user who pressed Enter on Publish was left with nothing focused,
and their next Tab started from the top of the page.

When focus was in the card, a redraw now gives it back: to the address
field if that had it, else the button, or the site's link once it's live.
While the button is disabled for the publish, the card itself holds focus
(no focus ring, like the Publish popover). Focus anywhere else is left
alone.

The test DOM now moves focus to <body> when the focused element is
removed, as browsers do.
2026-11-03 12:08:46 -07:00
..
2026-10-23 22:24:38 +07:00