Skip to content

Add "Boundary View Mode" to Display Block Outlines in the Gutenberg Editor #66576

Open

Description

@orionp13

What problem does this address?

Currently, when creating and editing content with the Gutenberg editor in WordPress, there is a lack of visual cues indicating the boundaries and structure of text blocks and other layout elements. This can lead to frustration, as users may find it challenging to accurately arrange and visualize the organization of their content. Without clear lines or frames around blocks, it is difficult to see where one block ends and another begins, especially in complex layouts with nested or closely spaced elements. This lack of boundary visualization can result in increased editing time, potential layout errors, and overall confusion about the page structure during the content creation process.

What is your proposed solution?

To address this issue, I propose adding a feature to the Gutenberg editor that provides an optional "Boundary View Mode" or "Outline Mode." When activated, this mode would display light borders, lines, or frames around each content block, giving users a clearer sense of the structural divisions on the page. This visual outline should not affect the actual published content but serve solely as an aid in the editing interface. The feature would resemble visual editor tools used in design and layout software, where block limits and separations are visible to improve precision.

This solution would enable users to:

  • Easily see the limits of each content block, reducing guesswork when arranging or editing sections.
  • Better understand nested structures or complex layouts, especially when working with containers, columns, or groups.
  • Quickly identify where adjustments are needed without affecting surrounding elements.
  • Toggle the mode on and off based on personal preference or specific tasks, providing flexibility in the editing experience.

Adding this feature would make content editing in Gutenberg more intuitive, particularly for users who work on complex layouts or want a more precise visual representation of their page's structure during editing.

Image
Image

Activity

  1. added
    [Type] Enhancement
    on Oct 29, 2024
  2. hanneslsm commented on Oct 30, 2024

    @hanneslsm

    This is a valid issue.
    I usually enqueue the following css into the editor to enhance the UX, but a native "boundary mode" would be also very nice.

    /* Show blocks for easier editing */
    .wp-block:hover .wp-block {
    	outline: 1px dotted
    		color-mix(in srgb, var(--wp-admin-theme-color) 20%, transparent);
    }
    
  3. orionp13 commented on Feb 28, 2025

    @orionp13
    Author

    please add this to gutenberg :)

  4. added
    [Status] In Progress
    on Mar 3, 2025
  5. added
    Needs Design
    Needs Decision
    on Mar 3, 2025
  6. orionp13 commented on Mar 11, 2025

    @orionp13
    Author

    Please add this, this feature really matter, please see screenshot in attachment

    Image

    And here we can't see these blocks it's an issue
    Image

  7. hanneslsm commented on Mar 11, 2025

    @hanneslsm

    Please add this, this feature really matter, please see screenshot in attachment

    @orionp13 Feel free to contribute by reviewing and sharing your opinion on the PR #69388 from @Sukhendu2002 to keep the discussion going

  8. Mamaduka commented on Mar 11, 2025

    @Mamaduka
    Member

    This could be a user/community plugin; it doesn't have to be a part of the core. To my best knowledge, it doesn't align with the current block editor's design guideline. cc @WordPress/gutenberg-design.

  9. orionp13 commented on Mar 11, 2025

    @orionp13
    Author

    Please review these design guideline it's not normal that we can't see block

  10. buzztone commented on Mar 11, 2025

    @buzztone

    @Mamaduka can you please add a link to the "current block editor's design guideline".

  11. Mamaduka commented on Mar 12, 2025

    @Mamaduka
    Member

    I don't recall the design team creating a handbook; it's just a direction they're moving towards. I'm not a designer, and I'm sure they can explain it better.

    More of the design explorations are shared on https://make.wordpress.org/design/.

  12. orionp13 commented on Mar 12, 2025

    @orionp13
    Author

    I believe the "Boundary View Mode" should be integrated by default in Gutenberg. Currently, the lack of visual cues makes editing more difficult, especially for complex layouts.

    👉 Many modern editors (Elementor, Webflow, Figma) already offer this kind of feature.
    👉 It does not affect the final display and can be toggled on or off as needed.
    👉 Better visibility reduces errors and improves the user experience.

    This request is legitimate and widely supported by the community. It would be a shame to rely on third-party plugins for such a fundamental feature!

  13. paaljoachim commented on Mar 12, 2025

    @paaljoachim
    Contributor

    Something similar to this has been discussed earlier but I do not recall what happened with it. As it is a good idea to get a boundary overview of the canvas area. Some good searching here on Github might show some earlier discussions.

  14. ajitbohra commented on Mar 12, 2025

    @ajitbohra
    Member

    We have a similar spotlight mode, which can help with better navigation and block selection. You can toggle this as needed.

    spotlight-mode-editor.mp4

    Further, we have an outline on the block icon hover in the toolbar (this can be updated to show an outline when the block is selected/hovered)

    outline-block.mp4
  15. added
    [Focus] Accessibility (a11y)
    on Mar 12, 2025
  16. afercia commented on Mar 12, 2025

    @afercia
    Contributor

    Noting that as implemented in the associated PR #69388 this feature also adds a blue outline to the selected block, which is much needed for accessibility.

    The selected block used to have a visible outline. It was removed in WordPress 5.5. See #23892 which is an accessibility regression reported more than 4 years ago.

    Although Boundary Mode would only reintroduce the outline behind a preference, I strongly advocate in favor of it.

    Image

  17. hanneslsm commented on Mar 12, 2025

    @hanneslsm

    I like that this discussion gets some traction.
    I must say that I'm also in big favor of a boundary mode and that's why I always add the CSS from above to enhance the UX. I couldn't live without it anymore.

    The advantages of a boundary mode (and my code are with hover are):

    • when not being with the mouse on the canva, you don't see the boundaries. Therefore, the editor very much represents the front end.
    • You see invisible blocks, like spacer.
    • You can see the width and alignment of blocks. This is very helpful to understand the concept of the justification and text-alignment. Related issue: Layout: Align options are confusing when flex layout is set to 'Stack' #55191
      Real life example:
    CleanShot.2025-03-12.at.14.27.16.mp4
  18. deutrino commented on Jul 3, 2026

    @deutrino

    This request is legitimate and widely supported by the community. It would be a shame to rely on third-party plugins for such a fundamental feature!

    It's probably worth noting that this regression was originally brought up in #23892 and has now been languishing with no decisions made for 6 years.

  19. cbirdsong commented on Oct 8, 2026

    @cbirdsong

    I've added custom CSS to do this for many years now, and it makes creating/editing layouts in the editor much more comprehensible:

    Block editor showing outlines around all container blocks

    It's very easy for users to end up with unnecessary layout/wrapper blocks when they just invisibly stack up:

    Block editor outline panel showing a group block containing a columns block Block editor outline panel showing four nested group blocks around a columns block

    Visually, these two sets of blocks look exactly the same in the editor:

    Image

    But with block outlines it's very clear:

    Block editor showing outlines around all container blocks

    It makes some sense to offer a perfectly WYSIWYG-style experience when all that the user is editing is content, but as soon as more complex layouts enters the picture it's not a great fit.

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

    Needs DecisionNeeds Design[Focus] Accessibility (a11y)[Status] In Progress[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions