Skip to content

Accessibility issue with links listing blocks. #64051

@Hug0-Drelon

Description

@Hug0-Drelon

Description

Blocks listing links aren't wrapped in a <nav> leading to accessibility issue.
Although it has been done for old fashioned widget, see https://make.wordpress.org/core/2020/07/09/accessibility-improvements-to-widgets-outputting-lists-of-links-in-5-5/

Concerned blocks I found are:

  • core/page-list
  • core/categories
  • core/tag-cloud

core/posts-list might be concerned in some cases.

Step-by-step reproduction instructions

Add one of the mentioned block in a post and see there is no <nav> on frontend.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] CategoriesAffects the Categories Block[Block] Page ListAffects the Page List Block[Block] Tag CloudAffects the Tag Cloud Block[Focus] Accessibility (a11y)Changes that impact accessibility and need corresponding review (e.g. markup changes).[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions