You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Replace Post/Block tab switcher with TabPanel #43414
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.
This should be replaced with the TabPanel component.
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'.
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.
@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.
Activity
talldan commentedon Feb 1, 2023
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
TabPanelmay have to become a controlled component. I think when you deselect a block the selected tab changes from 'Block' to 'Post'.mirka commentedon Feb 1, 2023
Ah, #46704 may unblock it then.
alexstine commentedon Feb 9, 2023
@aaronrobertshaw asked for my feedback over here in another issue.
I highly support this now that the
TabPanelis 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.
mirka commentedon Dec 22, 2023
Closed by #55360