-
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
Link Control: selecting open in new tab option closes out the entire modal too quickly #54672
Comments
Yea, it's unexpected that it closes the panel. I suspect the difference is that the change is committed on the preview view, but within edit view you need to press the "Save" or "Cancel" buttons to commit. |
From what I can see from your demo it's working as expected. I couldn't see anywhere where it is not being persisted and I've tested on Note that this checkbox is provided as means to quickly toggle this setting which is something that a subset of users feel very strongly about as it's a key part of their workflow. Thus why we this is intentionally placed here. Rich's comments above are also accurate. It is on our roadmap to consider having the control remain open when toggling settings like this. However, we need to solve a11y issues around how users of assistive technology can escape the dialog when there is no explicit close button. To neglect this would be to produce an inaccessible experience for a significant portion of our user-base.
Can you explain the workflow you are undertaking here? I'm genuinely curious as to whether we've overlooked something. If you want to make a few changes to a link you'll need to enter "edit" mode which requires clicking on the pencil icon in the dialog. The purpose of the setting toggle is not making multiple changes - it's intended to allow you to quickly toggle this one particular niche setting. TBH it's a bit of an anomaly, but as I mentioned, it's a key workflow for a subset of our users. Note also that we're proposing removing this preview step entirely which would negate this issue in future releases. Feedback on that feature also appreciated. |
Thanks for following up and for the added context. The workflow is simple: I am adding a link and setting it to open in a new tab. In doing so, the modal closes out the second I click the checkbox, making it unclear to me if it even worked properly. Compare it to the experience of using the advanced settings where it stays open: add.link.movIt felt like a bug at least to me. I do dig the newer experience you're exploring here more: #50998 |
Thanks. It was the "not persisting" that threw me a little because it is in fact persisting it's just (and I think this is the nub of the Issue) the fact isn't clear enough to you (as a user). I get you. It's not ideal. @richtabor and I are aware of the suboptimal experience and working on it. However, do you still feel this qualifies as a "Bug"? I'm open to whatever folks feel is right. Appreciate your time here to report this and provide feedback. |
It feels like a bug to me when the Advanced section otherwise stays open but it's likely closer to an enhancement. I'll update the labeling and we can iterate going forward :) |
At this point, it seems unlikely to be iterated on for beta 1 so am going to move to punted to 6.5 as well. |
After a review by core editor triage leads and core editor tech leads, this has been removed from the board for 6.5 consideration. |
Actually, I think this is fixed now that this has been merged: #57726 Closing out as I can't replicate. |
It's been resolved by #58744 |
Testing GB 17.8 nightly and WP 6.5-alpha-57555 on WP Playground, I'm now seeing this behavior return: opening.and.closing.movI'll keep an eye on it next week to ensure it's resolved or will reopen otherwise. |
Checking the code on Gutenberg gutenberg/packages/block-editor/src/components/link-control/index.js Lines 424 to 434 in 194d208
That's expected after #58744. The updated packages (including I'll make a note to circle back. |
Couldn't replicate with 6.5 beta 1! Keeping closed. Thank you for your attention to detail, Dave ❤️ small.replicate.mov |
In testing some of the writing improvements for 6.4, I noticed that the open in a new tab control in the link preview closes out very quickly #53566
and doesn't seem to persist(edit: the value is persisted):link.control.closing.out.too.quickly.mov
This makes for a jarring and somewhat cumbersome experience for editing links, especially if you are trying to complete a few changes to a link. I'm using 6.3.1 and GB nightly. cc @getdave and @richtabor for thoughts/replication!
The text was updated successfully, but these errors were encountered: