Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#60351 closed defect (bug) (reported-upstream)

Core Navigation Submenu Block - "Links are not crawlable" SEO lighthouse warning

Reported by: frdmsun Owned by:
Priority: normal Milestone:
Component: Menus Version: 6.4.2
Severity: normal Keywords: has-patch
Cc: Focuses: ui, accessibility

Description

Top level Core Navigation Submenu Block inserts an empty <a> tag when a link is not entered.

Submenu block can be used to open the submenu on mouse over and there is no intention of using at as a link.

Google page speed score warns - "Links are not crawlable".

It would seem that the a tag should not be used in this case.

Attachments (1)

warning.jpg​ (260.8 KB ) - added by frdmsun 3 years ago.

Download all attachments as: .zip

Change History (5)

This ticket was mentioned in ​PR #5952 on ​WordPress/wordpress-develop by ​AbdiTolesa.


3 years ago
#1

  • Keywords has-patch added

#2 @poena
3 years ago

Hi @frdmsun

To create a parent menu item that is not a link you need to enable the Submenus "Open on click" setting on the navigation block. This changes the tag to<button>.

I understand from the description that you want this to work on hover, not only on click, and this is not implemented.
Issues and feature requests for blocks need to be opened in the ​Gutenberg GitHub repository. Can you please move it there?

You can find an overview issue about the navigation block here:
​https://github.com/WordPress/gutenberg/issues/38275

#4 @poena
3 years ago

  • Milestone Awaiting Review
  • Resolution → reported-upstream
  • Status new → closed
Note: See TracTickets for help on using tickets.