Add accessible notice for "no results" in the Link Control #50992
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Enhancement
A suggestion for improvement.
There would still be "Add block" or "Add new page/link: {query}" as the primary suggestions/results. I do want to keep the current heading as visually hidden (#50977) but I suppose we could also add a condition for if there are no results as well.
Discards current changes and closes the popover; does not remove the link.
Yes, 100%.
I'd argue that the expectation of picking a new suggestion would populate all properties of the suggestion (link and text). But I do recognize that we do not have this logic in place today.
I lean towards having it in a footer area so that it doesn't present like a result. It should be clear that there is not an existing result.
Yes, I share this concern. It could be fine to have "Add new tab" placed after "Link". But that does introduce another oddity if we add additional controls for say Link Rel and Class. The Settings icon would open the drawer of all those additional controls.
Search is not restricted to specific cases except for these block variations. I think the type indicated on each result is indicative of the items that are suggested (for both cases).
The URL input works like this today; where if you start typing, you get results suggested for you.
Originally posted by @richtabor in #50950 (comment)
The text was updated successfully, but these errors were encountered: