As of now, the link to configure a section is displayed as a text link. The link to remove a section is displayed as a button.

It would be more consistent with the contextual links to move, update, remove blocks to also have contextual links for the section links.

| Comment | File | Size | Author |
|---|---|---|---|
| #2 | contextual_section_links-3344037-2.patch | 10.21 KB | vbouchet |
| #2 | contextual-lb.png | 70.55 KB | vbouchet |
| contextual.png | 23.16 KB | vbouchet | |
| lb.png | 57.92 KB | vbouchet |
Comments
Comment #2
vbouchetFind a patch to achieve it.
Please note that the patch update the layout twig files. If the layout twig files are customised on your project, you probably need to add
{{ title_suffix }}attribute for the contextual link to render.I have not created any test on purpose as I suspect it will require a lot of discussion before it can be merged in core and the implementation may change.
Comment #5
johnpitcairn commentedI'm not personally a fan of contextual links, they add a discoverability barrier, and everything winds up looking the same. If consistency is the goal, I'd prefer blocks didn't use them either.
See #3042516: Re-evaluate whether Contextual Links are the best interaction for configuring/moving/deleting blocks in Layout Builder
Comment #6
danielvezaI feel like this one should be tagged as needing Usability review as it's a pretty big UI change for LB.
My 2c is that I'm not a big fan of the idea, I feel like having these links as contextual links hides them a bit too much. There is already quite a few contextual links on a page built with LB. Adding more to configure sections as well as blocks makes this messy in my eyes