Skip to content

Remove override indicator when editing a pattern with overrides #62193

Closed

Description

@richtabor

Description

As a follow-up to #61560, the override indicator should be available only in the context of overriding, rather than editing the synced pattern itself.

Step-by-step reproduction instructions

  1. Add a synced pattern.
  2. Add an override.
  3. See the extra block icon.
  4. Add that pattern to a page.
  5. See the proper placement for the icon.

Screenshots, screen recording, code snippet

335621721-1d989332-7718-46a9-b9b7-32f923071e02

Environment info

Gutenberg trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Activity

  1. added
    [Type] Bug
    [Feature] Synced Patterns
    on May 31, 2024
  2. colorful-tones commented on Jun 3, 2024

    @colorful-tones
    Member

    @richtabor do you mind attaching the synched pattern you used for testing and reporting this please? It would likely expedite testing and solving. Thanks for reporting!

  3. colorful-tones commented on Jun 4, 2024

    @colorful-tones
    Member

    I’m unclear as to whether this is a bug or merely iteration towards a new feature through code and/or without any design consideration or user experience outreach? Perhaps some brief details as to how it is framed as a bug might help other contributors dig in and move things along, which could free up other contributors to focus on other things.🤔

  4. talldan commented on Jun 4, 2024

    @talldan
    Contributor

    It definitely looks like a bug, as there are two block icons on the toolbar:
    Screenshot 2024-06-04 at 10 51 38 am

    It should happen with any pattern when editing the pattern source. So for example, in the site editor's patterns page, when editing an existing synced pattern or using the 'Add new pattern' option.

    Select a paragraph in the pattern, go to the block inspector > advanced panel, and select 'Enable Overrides'. Type a name into the modal and confirm, then the second block icon appears on the toolbar.

  5. richtabor commented on Jun 4, 2024

    @richtabor
    MemberAuthor

    I’m unclear as to whether this is a bug or merely iteration towards a new feature through code and/or without any design consideration or user experience outreach?

    Two of the same block icons in the toolbar is a bug. :)

  6. colorful-tones commented on Jun 4, 2024

    @colorful-tones
    Member

    It definitely looks like a bug, as there are two block icons on the toolbar

    I guess as long as its clear to you folks that a duplicate icon is a bug then that is all that matters, right. However, it is not clear from the information on this current issue the context as to why or what the expected behavior is (to me). We may want to explore being a bit more thorough on our issue descriptions in order to empower new contributors or even newer contributors to engage and possibly even chip in. Just some feedback for consideration. Thanks for all the contribution efforts. 🫶

  7. talldan commented on Jun 20, 2024

    @talldan
    Contributor

    I believe this was fixed by @kevin940726 (and in testing I can no longer repro). Kai can probably advice the exact PR.

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

    [Feature] Synced Patterns[Type] Bug

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions