gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Extend Link Validity Status Indicators to the Submenu Block

Open getdave opened this issue 1 year ago • 2 comments

What

Currently, link validity status indicators (e.g., “(Invalid)”...etc) are implemented only for the Nav Link block.

The Submenu block, however, does not display these indicators—even when its child links or associated references are in invalid states.

This issue extends all relevant link status indicators to the Submenu block to ensure consistent signalling across Navigation block structures.

Why

Users editing Navigation menus that include Submenus currently receive incomplete or inconsistent feedback.

A Submenu block may be invalid, but nothing in the UI indicates this. Similarly it is not clear that items listed under this Submenu will not be displayed on the front of the site.

Extending indicators to this block improves clarity, makes broken links easier to find, and ensures consistent behaviour across both Nav Link and Submenu items.

How

•	Apply the same link validity detection logic used for Nav Link to the Submenu block.
•	Display equivalent indicators at appropriate levels of the Submenu structure.
•	Reuse shared utilities/components for link status detection and rendering wherever possible.
•	Provide accessible equivalents for all indicators (e.g., visually hidden labels for screen readers).
•	Consider long-term consolidation of Nav Link and Submenu blocks as follow-up technical refactor work, but prioritise shipping user value.

User Stories

As a user, I want Submenus to show the same status indicators as regular Nav Links, so I can identify broken or problematic items no matter where they appear in the menu.

As a user, I want invalid or draft links inside Submenus (i.e. child links) to be clearly surfaced, so I don’t have to dig through nested structures to find issues.

As a user who relies on assistive technology, I want link status indicators in Submenus to be announced clearly, so I can detect broken nested items without relying on visual cues.

getdave avatar Nov 14 '25 14:11 getdave

Hey! I checked on this but wasn't able to reproduce the issue (WP 7.1-alpha-62201 and GB 23.1.1). Both the child item in a submenu and the parent menu item (Submenu block), if invalid, does show the 'Invalid' indicator for it. Is there any part that I'm missing in the steps, or I assume it might have been fixed in the latest version?

Image

BugReportOnWeb avatar May 25 '26 08:05 BugReportOnWeb

Implemented in #74461: a Submenu whose link points to a deleted or invalid page now shows the same "(Invalid)" indicator as Navigation Link items, as do its invalid children. Closing. Thanks @BugReportOnWeb for checking.

youknowriad avatar Sep 18 '26 14:09 youknowriad