Block Editor: URLInput: Soft-deprecate label
prop
#22438
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Package] Block editor
/packages/block-editor
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Previously: #18061 (comment)
As discussed in #18061, the new
LinkControl
component can be considered as a composite component ofURLInput
, plus labeling behaviors associated with similar*Control
input control components.Diagram (not including label):
In this model,
URLInput
should be considered a very barebones component whose sole responsibility should be to render an input field and associated URL autocompletion results from which to pick a value.This component would not accept a
label
prop. However, sinceURLInput
already does acceptlabel
, we should soft-deprecate it in the following manner:label
label
is provided:deprecated
message<LinkControl />
with the givenlabel
and relevant propsLinkControl
will recursively renderURLInput
, but it should not passlabel
, thus avoiding recursionThe text was updated successfully, but these errors were encountered: