-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Block Editor: Improve UX for the URL link viewer #17972
Comments
I don't have a problem with how it works now either, except that there is no part of the UI to make an anchor instead of a link. |
That makes a link, not an anchor. You don't use a href on an anchor, you use the ID attribute. It's a destination, not a way to get there. |
Ah, I see what you mean now. I've never used a link as an anchor point — only to link to one. Currently, Gutenberg allows you to add an ID anchor to the Heading block — which is the only way I've ever done it. |
I guess the motivation in the Classic editor was to avoid creating an anchor that is invalid because it doesn't have |
@enriquesanchez, can you provide some accessibility feedback on this one? |
To me, "link is empty" means there is no text to click. Perhaps "address is empty" or "no destination"? What is the procedure for making an anchor (no href)? |
related: #26351 |
@getdave, should we close this issue after all the iterations applied to the URL link tooltip? |
@gziolo I can see the same issue still occurs, namely that the Link UI doesn't expect this scenario and the UX is non-optimal. Therefore I don't think we should close this one but instead I think we should re-do the description to ensure it's up to date with the changes in the codebase. @javierarce You and I have worked on the link UI quite a bit. How do you think we should communicate to the user that there is no link or it is invalid? @gziolo Would you agree an empty |
I guess it's a correct assumption. We should show some hints to the user so they could fix it. |
@getdave I think #17972 (comment) is still a good solution but we could change the icon: I also notice that it's possible to create empty links by inserting a space in the input field and the control will create an empty link with just the string |
This task is now on my radar to be worked on when I can. |
Follow-up for #17928 where @glendaviesnz fixed the root issue of #17657:
One option to improve the UX is to:
To reproduce
or
create a link with no href when editing a block in HTML mode
The text was updated successfully, but these errors were encountered: