WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.48k stars 4.18k forks source link

"Add Block" label - customize based on context #56340

Open scruffian opened 11 months ago

scruffian commented 11 months ago

What problem does this address?

When a user is editing a navigation they see a [+] with the label "Add block":

Screenshot 2023-11-20 at 21 52 27

For users who don't know what a block is, this is confusing.

What is your proposed solution?

We could customize this label based on the block its in - for example in the gallery block it could say "Add image" in Page List it could say "Add page" etc.

talldan commented 11 months ago

In some cases this already happens, like in the buttons block where there's only one allowed block (it's the add button that adds buttons):

Screenshot 2023-11-21 at 5 30 45 pm

I feel like I remember it working in the past in the navigation block, but can't be sure. 😄