-
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
Iterate on 'Insert link' interface #6028
Conversation
😭 but ok. Wouldn't the ellipsis be better placed on the other side? Similar to blocks, and doesn't deserve first focus imho. |
I do like it before but not oppose to having secondary after edit, it does feel more the same as our current patterns so lets do that change @noisysocks. Can the link icon be only at full opacity once then text is selected? This could fix some issues with people just having no text selected see: #5960 |
This reverts commit 5ab37b7.
Some changes had occured elsewhere in the codebase in between when this UI was reverted and when it was unreverted. - Imports `ToggleControl` correctly - Fixes `RichText` tests
Change the icon to be the same icon used elsewhere in the editor, and move the toggle button to the left of the link UI.
Consolidate the dedicated 'remove link' button into the toolbar button that adds a link.
Reset the link UI once the user has edited the link value.
Don't call `onChange()` when 'Open in new window' is toggled if we are adding a new link (as opposed to editing an existing link).
The link popup should widen to fit the URL within it.
Make the suggested links UI more stylistically consistent with the rest of the editor.
Move the ellipsis button to the right of the edit button. This is more consistent with where the ellipsis icon is used elsewhere in the editor.
fd30496
to
0bb6c85
Compare
👌 done in 0bb6c85.
Let's treat this as a seperate issue since #5960 is open and I have some questions about it (namely #5960 (comment)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me, lets get this in and take from there any iterations, I agree.
@noisysocks we seem to have a fun bug :) Dancing link interface: Happens for me in Chrome and Firefox. Props to @mtias for finding this one. |
Closes #4572.
Testing
target="_blank"
.