Skip to content

Site Hub: Doesn't work properly on some screens in mobile view #69155

@t-hamano

Description

@t-hamano

Description

The site hub icon in mobile view has two functions:

  • On menus other than the Design menu, it returns to the upper menu.
  • On the Design menu, it returns to the dashboard.

Image

However, it may not work properly in the block theme and classic theme.


Block Theme

On the Design menu, the site hub is supposed to be a link to go back to the dashboard. This was working correctly in WP 6.7:

screenshot

Image

On the other hand, in Gutenberg trunk, the site hub is a button element that does nothing when clicked, and is mislabeled:

screenshot

Image

After some investigation, it appears that this issue occurred on #67199.


Classic Theme

Access the Patterns menu.

In WP 6.7, the site hub button navigates tothe Design menu. This is not what we want, since in WP 6.7, the only allowed menu in the site editor is the Patterns - it should be a link to the dashboard:

screenshot

Image

On the other hand, in Gutenberg trunk, the site hub is a link to the dashboard. This means you cannot return to the Design smenu, which has two menus: Styles and Patterns:

screenshot

Image

This may be related to the introduction of StyleBooks for the Classic theme, which means the Patterns menu is no longer the root menu.


Taking all of this into consideration, I believe that although not everything worked correctly in WP 6.7, there are some regressions in Gutenberg trunk that need to be fixed in WP 6.8.

Step-by-step reproduction instructions

N/A

Screenshots, screen recording, code snippet

No response

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

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure

Metadata

Metadata

Assignees

Labels

Mobile WebViewport sizes for mobile and tablet devices[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions