Skip to content

Update DocumentBar with post type label #65167

Closed

Description

@richtabor

In an effort to improve the reference points between post types in the Site Editor, I propose removing the icons and using a visible label for the post types in the DocumentBar.

Tasks

  • Remove the icon.
  • Add support for the post type label.
  • If there's a post type label, place a · between them.

Current

current

Proposed

proposed

Activity

  1. Mamaduka commented on Sep 9, 2024

    @Mamaduka
    Member

    Related #62186. cc @afercia

  2. creativecoder commented on Sep 9, 2024

    @creativecoder
    Contributor

    @richtabor Note that there's one case with template parts, where the icon is used to identify the template part area (header, footer, or general), in addition to the post type. Do you think it's worth keeping the icon in this case?

    Template part names are up to the theme, so these won't necessarily be named "Header" or "Footer":

    image image
  3. self-assigned this
    on Sep 9, 2024
  4. richtabor commented on Sep 9, 2024

    @richtabor
    MemberAuthor

    Do you think it's worth keeping the icon in this case?

    I think it's fine just to use "Template Part".

    CleanShot 2024-09-09 at 16 19 24

  5. creativecoder commented on Sep 9, 2024

    @creativecoder
    Contributor

    PR here, trying this out: #65170

  6. creativecoder commented on Sep 9, 2024

    @creativecoder
    Contributor

    I noticed that we use the same treatment with the purple color, icon, and document name in the sidebar:

    image

    Perhaps the title text there should also have the icon removed, to be consistent?

  7. jasmussen commented on Sep 10, 2024

    @jasmussen
    Contributor

    You'll need to update the color of the template text to #6d6d6d, but otherwise, let's do it, it seems much clearer.

  8. added
    Needs DevReady for, and needs developer efforts
    and removed on Sep 10, 2024
  9. afercia commented on Sep 10, 2024

    @afercia
    Contributor

    Related #62186. cc @afercia

    Thanks for the ping. I'm in favor of reducing proliferation of icons in the editor and, as @Mamaduka pointed out, this would also solve #62186

    Specifically to the Document Bar

    It should be entirely reconsidered. Currently, its labeling completely mismatches its functionality.

    Some history:

    The need to clearly identify what is being edited in the editor isn't new. On April 2017 (more than 7 years ago) in #503 the accessibility feedback was to use a visible H1 heading as first title in the <main> content. All we got is a visually hidden heading.

    Years later, the design wanted to add a visible indication of the object being edited thus validating the need for a visible indication. The Document Bar was added but its implementation is less than ideal. I will try to split all this in a separate issue.

    For now, I support the removal of the icon in favor of visible text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

General InterfaceParts of the UI which don't fall neatly under other labels.Needs DevReady for, and needs developer efforts[Status] In ProgressTracking issues with work in progress[Type] EnhancementA suggestion for improvement.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions