Block Editor: LinkControl: Remove Popover-associated styling #22437
Labels
CSS Styling
Related to editor and front end styles, CSS-specific issues.
[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)
LinkControl
is intended to be used as a standalone form field, much like other*Control
input control components. As such, it should make no assumptions about the context in which it is rendered. Currently, there is styling applied to theLinkControl
component which assumes that it would be rendered to appear within a popover modal. This should be removed from the underlying component.Ideally, a generic component like this can "just work" when rendered within a popover. If popover styling is insufficient, it should be considered whether the default popover styling (e.g. padding) is adequate for intended usages. The idea here is: We should avoid the idea that these sorts of components are special and instead aim to have a good set of base styling for popovers which can cover most all usage.
At worst, the styling could be moved to the component which renders the
LinkControl
within aPopover
. As noted at #18061 (comment), there is an option to explore to repurpose the (largely defunct)URLPopover
to this end.The text was updated successfully, but these errors were encountered: