- Status changed to Closed: won't fix
over 1 year ago 9:18pm 23 March 2023 - 🇫🇷France vbouchet
Hi @aluzzardi. I do agree that having more accessible attributes would be a good idea. That said, I don't know if just adding the block label would be enough as it is not really descriptive. The core Layout Builder block picker itself is not providing a title attribute.
I recently introduced 2 change which would allow developers to alter the generated markup and add the title if they need it with the wording they need:
- Block links are now rendered using a theme function ✨ Browser block item displayed via a theme function Fixed which allow developers to create their own template file to override
- A new hook_layout_builder_browser_alter() have been introduced ✨ Ability to Set Categories to Expanded/Collapsed Fixed to allow developer to alter the render array generated
Based on these feedbacks, I will close the ticket but feel free to reopen if you disagree or have a better option.