Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tracked by #35521
ramonjd opened this issue May 12, 2021 · 1 comment
Open
Tracked by #35521
Assignees
Labels
[Block] List Affects the List Block [Block] Navigation Affects the Navigation Block [Feature] Block Transforms Block transforms from one block to another [Type] Enhancement A suggestion for improvement.

Comments

@ramonjd
Copy link
Member

ramonjd commented May 12, 2021

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.

@Mamaduka Mamaduka added the [Block] Navigation Affects the Navigation Block label May 12, 2021
@mtias mtias added [Block] List Affects the List Block [Type] Enhancement A suggestion for improvement. labels May 14, 2021
@georgeh georgeh self-assigned this Nov 5, 2021
@georgeh
Copy link
Contributor

georgeh commented Nov 9, 2021

Unless this is urgent, I think we should wait until #35870 is done, since that will make the transformation much easier.

@ellatrix ellatrix added the [Feature] Block Transforms Block transforms from one block to another label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] List Affects the List Block [Block] Navigation Affects the Navigation Block [Feature] Block Transforms Block transforms from one block to another [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants