mirror of
https://github.com/HeyPuter/builder.git
synced 2026-11-13 18:33:58 -10:00
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.