Skip to content

Editor: Always show Global Styles button #74944

Open

Description

@t-hamano

What problem does this address?

See #72681 (comment)

When "Show Template" is off, the Global Styles button will not be displayed, this is based on this condition:

showGlobalStyles:
_isBlockTheme &&
userCanEditGlobalStyles &&
( currentPostType === 'wp_template' ||
renderingMode === 'template-locked' ),

a194e444f3bc5cefd15ce1c6300b63e4.mp4

To me, this is a bit unexpected. Global styles should work regardless of the rendering mode.

What is your proposed solution?

Personally, I prefer to always have the global styles button visible.

On the other hand, always having the global styles button visible in the post editor might confuse users.

Activity

  1. added
    [Type] Enhancement
    Global Styles
    [Status] In discussion
    on Jan 26, 2026
  2. changed the title [-]Post Editor: Always show Global Styles button[/-] [+]Editor: Always show Global Styles button[/+] on Jan 26, 2026
  3. youknowriad commented on Jan 26, 2026

    @youknowriad
    Contributor

    cc @jasmussen @jameskoster @mtias for opinions.

  4. youknowriad commented on Jan 26, 2026

    @youknowriad
    Contributor

    What I don't like personally is having specific conditions whether we're on site or post editor. I think it's ok to have conditions when it comes to modes or post types though.

    On the exact behavior, I'd note that the top toolbar is becoming more and more busy, so we need to be careful about what's always available or not.

  5. jasmussen commented on Jan 26, 2026

    @jasmussen
    Contributor

    The issue at the root of this is scaling the top toolbar, exactly as Riad says. Whether a button is permanently visible there, or contaxtually hidden, it all points back to the same main issue.

    To scale, interfaces can make use of contexts to show different UI. The block inspector is an example: shows the document inspector until you select a block—had we always showed everything, it would've been a problem. At the moment, the only way in which the top toolbar leverages context, is when you have the Top Toolbar option enabled.

    To make matters more complicated, the toolbar is complex but also growing still: back, insert, list view, undo, redo, template showing, page title, command palette, unlimited extensions, responsive editing/preview, global styles, notes, inspector, save draft, publish, kebab menu. And it'll continue to grow with collaborative editing: it seems likely we'll have a dropdown to let you choose between editing, suggesting, viewing. And perhaps even add a "Share" button.

    Ideally we seek out a system for this, and I would encourage good ideas here (CC: @WordPress/gutenberg-design).

    • Contexts that change the entire toolbar, just like top toolbar does? E.g. Notes move to "Suggesting" dropdown?
    • An auto-save that works like modern web-apps and is automatic?
    • Per-user customization options a la this?
    • Figma uses tools to contextualize which tools are available, we've mostly moved away from tools for the time being, but theoretically a "View" dropdown could offer the same (edit, suggest, view) and affect the rest of the toolbar with context.
    • Explore other contexts, there's enough to dream about: selection-based, mode-based, hover/focus states, tabs/panels, progressive disclosure, smart defaults with options, etc.

    The exercise is probably best done by taking inventory of every single action we have or can imagine, and then filing them into buckets of:

    • Core actions: always visible
    • State dependant: e.g. visible when zoomed, when in a mode (suggesting, editing, viewing, in a mode)
    • Secondary actions: can perhaps be moved to a dropdown menu, collapsed, something else.

    One extreme example of collapsing could be this:

    Image Image

    Another extreme example could be to only have a single inspector button, the sidebar icon, and move Styles, Notes, even extensions as top tabs inside this inspector, not unlike what Cursor does:

    Image

    I recognize that's not a direct answer, but I think the discussion deserves breadth. Because the specific issue: show global styles always or not, I might have a preference for keeping it template-editing-only (that's a context), but the truth is, I would like the system that scales this to any button we can think of, rather than a one-off decision.

  6. jameskoster commented on Jan 26, 2026

    @jameskoster
    Contributor

    Tying access to Global Styles to the “Show Template” option feels unexpected to me. Hiding the template causes the Global Styles panel to disappear which is strange because the relationship isn’t obvious. Seeing the template also doesn’t necessarily mean users want or need access to Global Styles. These hidden dependencies (of which there are a few) risk undermining a predictable, confident editing experience. When the Global Styles entry point disappears, I don’t imagine a regular user would intuitively know to toggle the template to get it back.

    A more familiar and flexible approach might be to make Global Styles always accessible via the kebab menu, and star-able, similar to third-party plugins so that users can manage prominence as they see fit. Alternatively a dedicated high-level Styles mode (with the ability to zoom out to a mosaic view of pages) could be worth exploring.

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

    Global Styles[Status] In discussion[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions