WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.49k stars 4.18k forks source link

Swap template button appears after the template menu opens #55005

Open draganescu opened 1 year ago

draganescu commented 1 year ago

Description

In the site editor when editing a page in the inspector there is a template menu that allows one to swap the template via a modal showing all templates:

Screenshot 2023-10-03 at 15 59 11

The swap template button has a delay in showing up.

Step-by-step reproduction instructions

-1. Have some pages

  1. Have the twenty twenty four theme active
  2. Go to the site editor
  3. Go to pages
  4. Click on a page
  5. In the editor go to the inspector (right sidebar)
  6. Toggle the Page tab
  7. From the templates menu click on the template name
  8. Notice the Swap Template button appears with a delay

Screenshots, screen recording, code snippet

https://github.com/WordPress/gutenberg/assets/107534/8685cbcc-3fad-4392-9963-c21ebb804532

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Mamaduka commented 1 year ago

Unfortunately, you can notice a "popcorning" UI in several places in the editor. Not sure what's the best solution is here.

draganescu commented 1 year ago

I think we should opt for disabled states rather than popcorn.