Skip to content
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

LinkControl: Improve Edit State #50890

Closed
7 of 8 tasks
richtabor opened this issue May 23, 2023 · 9 comments · Fixed by #51712
Closed
7 of 8 tasks

LinkControl: Improve Edit State #50890

richtabor opened this issue May 23, 2023 · 9 comments · Fixed by #51712
Assignees
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Package] Block editor /packages/block-editor

Comments

@richtabor
Copy link
Member

richtabor commented May 23, 2023

This proposal focuses on improving the state of LinkControl when editing an existing link.

Part of #50891

Tasks

Feel free to break these into individual PRs as needed:

Visuals

Current Proposed
CleanShot 2023-05-23 at 14 00 21 CleanShot 2023-05-30 at 11 27 34

Editing a link, showing suggestions

Note that the suggestions in this mockup are based on design tweaks from #50885:

CleanShot 2023-05-30 at 11 28 47

Toggling link settings

CleanShot 2023-05-30 at 11 29 39

Note that in the visual above the new tab checkbox was value was changed, setting the "Save" button as not disabled.

@hz-tyfoon
Copy link
Contributor

Thanks @richtabor for creating this. I'm keeping a note about this one. After checking I'll share a proper feedback on this.

@getdave
Copy link
Contributor

getdave commented May 24, 2023

Here is a PR which looks lay the ground work to start addressing some of these issues #50668

@richtabor
Copy link
Member Author

Updated visuals based on a11y feedback from #50950 (comment)

@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Jun 20, 2023
@annezazu annezazu mentioned this issue Jun 28, 2023
57 tasks
@priethor priethor removed the [Status] In Progress Tracking issues with work in progress label Jul 24, 2023
@christianoliveira
Copy link

We use these controls a lot (nofollow + open in a new tab) and with WordPress 6.3 the controls are now hidden, increasing the amount of clicks/work needed to achieve the same result 😭.

Is it possible manually roll this specific change back in my installation and/or be able to configure it otherwise?

Thanks so much in advance!

@getdave
Copy link
Contributor

getdave commented Aug 10, 2023

There is no way to roll this back for a specific installation. However if you run the Gutenberg Plugin you can take advantage of #52799 which "remembers" when you toggle the control open and will persist it in that state across all links until such time as you manually toggle it closed again.

@christianoliveira
Copy link

@getdave that seems perfect, thanks so much for the fast and helpful answer. Will try it!

@christianoliveira
Copy link

@getdave sorry, got too excited very early. I have the latest version of Wordpress, is it possible to get this fix (#52799 ) there? If so, how? You mention the plugin, but the plugin was supposed to be used only in older installations, or does it make sense to install it in the latest version of Wordpress?

@getdave
Copy link
Contributor

getdave commented Aug 10, 2023

@christianoliveira The Plugin is where rapid development of the block editor takes place. It is merged into WP Core at each major WordPress release.

The Plugin could be considered "beta" software as it undergoes less testing than when the code ultimately gets merged into WP Core. Therefore I would use with caution.

Unfortunately despite best efforts of all involved the fix didn't make it into WordPress 6.3 so you cannot utilise it in that release.

I'm working on #53531 as well but again that won't land in WP Core until the 6.4 release at the earliest.

@christianoliveira
Copy link

@getdave thanks for the explanation and for your time

That's sad news, as it will increase the amount of work we have until the next release (or we will need to add the nofollow/"open in a new tab" in other ways, directly in the code)

Unfortunately, this will be a lesson for me in not updating WordPress immediately in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Link Editing Link components (LinkControl, URLInput) and integrations (RichText link formatting) [Package] Block editor /packages/block-editor
Projects
Development

Successfully merging a pull request may close this issue.

6 participants