jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Newsletter: Pre-publish panel focussing on Newsletter component on Gutenberg trunk

Open coder-karen opened this issue 2 weeks ago • 0 comments

Issue

Ordinarily when creating a post and clicking publish, I see that it is expected that the Newsletter component in the pre-publish panel expands (aria-expanded is set to true).

When testing with the Gutenberg Nightly plugin installed (Gutenberg trunk), if the Newsletter component was out of site initially then it will be brought in focus with the scroll moving down.

The reason this could be an issue is that the final 'publish' button is now out of site. This did cause me some confusion initially, so inevitably would do for others (though only on small screens) - once those changes (and if those changes) make their way into core.

Screenshot 2024-06-19 at 16 58 14

To replicate

  • On a site with the latest stable Jetpack version (or trunk), install the Gutenberg Nightly plugin
  • Create a new post, and ensure the screen height is reasonably small (around 600px for example)
  • When clicking publish, notice that the Newsletter component becomes visible, hiding the final 'Publish' button.
  • If you have subscriptions enabled (the above assumes the default, disabled), it appears that both the Access and Newsletter panels are auto-expanded and brought into focus.

What I'd expect to see

I would expect that even if the Newsletter panel is expanded, I'd still be able to see the Publish button

coder-karen avatar Jun 19 '24 16:06 coder-karen