When using nested paragraph items, there are two remove buttons that appear together and it's not clear if you are clicking remove on the "inner" item or "outer" item until you click it. By giving site builders the ability to change remove text, it would be more clear.

I've attached an image of what it looks like currently and one where I've edited the button text to show differentiation. If this button text were allowed by the site builders, it would greatly improve UX. Or at minimum since it knows them by name anyway, use the name in the button (the way it's used in the confirmation message).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

shelane created an issue. See original summary.

kpaxman’s picture

Status: Active » Needs work
FileSize
1.95 KB

Attached is a patch that does half of what you request - it makes the text of the "outer content" remove button configurable. When displaying the button, it includes a check to see if the value is set, uses the default if not, so it is compatible with existing fields without requiring an update hook.

The "inner content" remove button comes from Drupal core's handling of multi-value fields, and I'm not sure how to affect that from within the Paragraph module (or if I should even be trying to do so).