Skip to content

List block: allow transformation of text links lists into navigation blocks #31733

@ramonjd

Description

@ramonjd

What does this feature request address?

We've noticed that, sometimes, block editor users create unordered lists comprising links to site pages.

Screen Shot 2021-05-13 at 6 35 22 am

In such cases, the navigation block might be a more appropriate way to structure the links.

What is your proposed solution?

Offer the option to transform list blocks that contain link + text items into navigation blocks.

Screen Shot 2021-05-12 at 11 43 46 am

We would have to take nested lists into account, and transform them into nested menu items as well I imagine.

An MVP might be to migrate the list into a <nav /> container, or would we transform items into custom link blocks?

How would we handle list items that contain, for example, images or other non-text blocks? I'd imagine we'd either skip them or simply allow transformation?

Based on this issue, it seems as though the navigation block is undergoing some changes. I'm not sure how that would influence any potential transformation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions