Skip to content

Replace Post/Block tab switcher with TabPanel #43414

Closed

Description

@mirka

Prerequisite for #41904 #42320

The Post/Block tab switcher in the Inspector (.edit-post-sidebar__panel-tabs) is currently implemented as a list of buttons, and is missing tabpanel semantics.

The Post/Block tab switcher

This should be replaced with the TabPanel component.

Activity

  1. added
    [Focus] Accessibility (a11y)
    [Package] Edit Post
    on Aug 19, 2022
  2. talldan commented on Feb 1, 2023

    @talldan
    Contributor

    I found this old PR that attempted to do this, but was closed - Use TabPanel in edit settings sidebar header (#13587).

    It looks like one issue surfaced in that PR (and has come up a few times recently in other issues) is that TabPanel may have to become a controlled component. I think when you deselect a block the selected tab changes from 'Block' to 'Post'.

  3. mirka commented on Feb 1, 2023

    @mirka
    MemberAuthor

    It looks like one issue surfaced in that PR (and has come up a few times recently in other issues) is that TabPanel may have to become a controlled component.

    Ah, #46704 may unblock it then.

  4. alexstine commented on Feb 9, 2023

    @alexstine
    Contributor

    @aaronrobertshaw asked for my feedback over here in another issue.

    I highly support this now that the TabPanel is working better than it ever has before. Cannot wait to see this happen. This will move us another step in the right direction of having consistent controls/interactions.

    Thanks.

  5. mirka commented on Dec 22, 2023

    @mirka
    MemberAuthor

    Closed by #55360

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

    [Focus] Accessibility (a11y)[Package] Edit Post

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions