Skip to content

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

Closed

Description

@paaljoachim

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

Activity

  1. added
    [Block] Embed
    on Nov 4, 2018
  2. added
    Needs Design Feedback
    on Jan 26, 2019
  3. youknowriad commented on Jan 26, 2019

    @youknowriad
    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.

  4. kjellr commented on Mar 18, 2019

    @kjellr
    Contributor

    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.

  5. sarahmonster commented on Mar 18, 2019

    @sarahmonster
    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?

  6. afercia commented on Mar 18, 2019

    @afercia
    Contributor

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

  7. changed the title [-]Youtube Embed: Clicking pencil/edit the pencil becomes hidden,[/-] [+]Embed blocks: Clicking pencil/edit the pencil becomes hidden,[/+] on Mar 18, 2019
  8. mapk commented on Jun 11, 2019

    @mapk
    Contributor

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

    Once these are merged, we can close this.

  9. removed
    Needs Design Feedback
    on Jun 11, 2019
  10. paaljoachim commented on Mar 18, 2020

    @paaljoachim
    ContributorAuthor

    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

  11. paaljoachim commented on Apr 6, 2020

    @paaljoachim
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] Embed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions