Skip to content

Refactor <BlockTools /> to be exported with all Block Toolbar Functionality #56046

Closed

Description

@jeryj

Follow-up to #55787

What problem does this address?

The <BlockToolbar /> component should be able to be used directly with all of the functionality of the Block Toolbar. In its currents state, the <BlockToolbar /> component does not have many of the accessibility improvements and keyboard navigation features. Those are implemented via <NavigableToolbar /> within <BlockContextualToolbar />.

What is your proposed solution?

  • Refactor <BlockToolbar /> to include the features of <BlockContextualToolbar />. This would remove <BlockContextualToobar />
  • Remove <BlockContextualToobar /> and its private-api export
  • Replace usage of <BlockContextualToobar /> in edit-site, edit-post, edit-widget, etc headers with `
  • Refactor <SelectedBlockTools /> to use <BlockToolbar /> directly.
  • Rename <SelectedBlockTools /> to something that indicates its true purpose -- making the <BlockToolbar /> into a floating popover. Something like, <FloatingBlockToolbar /> or <BlockToolbarPopover />.

Activity

  1. added
    [Type] Enhancement
    on Nov 10, 2023
  2. added
    [Feature] Blocks
    on Nov 12, 2023
  3. jeryj commented on Dec 8, 2023

    @jeryj
    ContributorAuthor

    Closed by #56335

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

    [Feature] Blocks[Type] Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions