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

Embed blocks: Clicking pencil/edit the pencil becomes hidden, #11439

Closed
paaljoachim opened this issue Nov 2, 2018 · 7 comments
Closed

Embed blocks: Clicking pencil/edit the pencil becomes hidden, #11439

paaljoachim opened this issue Nov 2, 2018 · 7 comments
Labels
[Block] Embed Affects the Embed Block

Comments

@paaljoachim
Copy link
Contributor

paaljoachim commented Nov 2, 2018

Describe the bug
I am calling this a "bug."
Clicking the pencil/edit icon opens the embed link. The pencil is removed. If one clicks outside of the box it stays on the embed link. Here it should revert to the link if there is one and show the video.

To Reproduce
Steps to reproduce the behavior:

  1. Embed a youtube video.
  2. Click pencil/edit.
  3. Clicking outside the box the embed url box is still there. It should revert to last selected video.
  4. Looking for pencil to bring back the embed is not possible. One has to click the embed button.

Expected behavior
Clicking pencil/edit. Should keep the pencil icon visible. As one can click it once to open the embed url link box. Then click it again to close.
When link url box is visible and there is already a link in it. Clicking outside the box the box should revert back to the video.

Screenshots

Video options:
screen shot 2018-11-02 at 22 51 06

Clicking edit/pencil (the pencil is now hidden):
screen shot 2018-11-02 at 22 51 22

Desktop (please complete the following information):

  • OS: Mac OS 10.13.6
  • Browser Chrome and Desktop Server
  • Gutenberg version 4.1.1
@ocean90 ocean90 added the [Block] Embed Affects the Embed Block label Nov 4, 2018
@youknowriad youknowriad added the Needs Design Feedback Needs general design feedback. label Jan 26, 2019
@youknowriad
Copy link
Contributor

From my understanding there are two patterns with the blocks:

Blocks with a setup state:

Setup state is the first step when you insert the block. you need to first "setup" the block before using it and then preview it properly. You also also have buttons to revert to the setup state. and I think that's the case for the embed block.

Blocks with different selected/unselected states:

There are other blocks where selecting them triggers a different UI where you could tweak the block settings and when you unselect the block once again, you revert the "preview" UI. (We have some of this in the image captions...)


I don't think mixing both patterns is a good idea like proposed here but I'll defer to design.

@kjellr
Copy link
Contributor

kjellr commented Mar 18, 2019

I think in general, the edit flow for replacing a the source (link, media item, etc) for some blocks is a bit confusing. We're working to improve this for the image block in #14142.

There may be things in there we can borrow for this situation as well.

@sarahmonster
Copy link
Member

Ideally, we would redesign this pattern across all the blocks that use it, so we have a consistent pattern throughout, and users don't need to learn a slightly different pattern for the same interaction. Can we widen the scope of #14142 so that it encompasses other blocks, as well?

@afercia
Copy link
Contributor

afercia commented Mar 18, 2019

Note: this happens also with the Audio block, Twitter block, and I guess with other embed blocks too. Updating the issue title.

@afercia afercia changed the title Youtube Embed: Clicking pencil/edit the pencil becomes hidden, Embed blocks: Clicking pencil/edit the pencil becomes hidden, Mar 18, 2019
@mapk
Copy link
Contributor

mapk commented Jun 11, 2019

Looks like this is being worked on in #15516 and #15518.

Once these are merged, we can close this.

@mapk mapk removed the Needs Design Feedback Needs general design feedback. label Jun 11, 2019
@paaljoachim
Copy link
Contributor Author

This is what it looks like in Gutenberg version 7.7.1.

Screen Shot 2020-03-18 at 11 35 08

Screen Shot 2020-03-18 at 11 34 58

@paaljoachim
Copy link
Contributor Author

I believe this issue can be closed. Just reopen if I am mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Embed Affects the Embed Block
Projects
None yet
Development

No branches or pull requests

7 participants