Make the Grouping and Ungrouping interaction labels customizable. #49675
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
General Interface
Parts of the UI which don't fall neatly under other labels.
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
I am using the
setGroupingBlockName
function found in@wordpress/blocks
very effectively for a few use cases. The problem is that the labelsGroup
andUngroup
are hard coded into the UI and unchangeable. It doesn't always make sense to have those labels stay the same. For example, if thegroupingBlock
iscore/quote
, I'd prefer the label for the grouping interaction to sayAdd to Quote
and the label for the ungrouping interactionUnquote
.What is your proposed solution?
Adding two publicly available functions that set the labels. I started a draft PR #49674 here, which I can finalize/update if this seems like addition the team wants to go through with.
The text was updated successfully, but these errors were encountered: