Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Cart i2: Try using __experimentalExposeToChildren to share view switcher component with all child blocks #4812

@senadir

Description

@senadir

Context: p1632321579045000-slack-C45SNKV4Z

We currently have a view switcher toolbar button at the top 3 components, Cart, Filled Cart, and Empty Cart. Those blocks are never directly selected because they're just innerBlocks containers, meaning people would always select an innermost block, that doens't have view switcher exposed to it, making the process to discover view switcher hard to impossible to find unless you know what you're looking for.

We should try exposing view switcher button to all inner blocks, using __experimentalExposeToChildren and __experimentalShareWithChildBlocks.

If we can't make that work, we should look into using view switcher on all blocks, if that's not possible, move it to a permanently visible place like it was in Cart i1.

Metadata

Metadata

Assignees

Labels

block: cartIssues related to the cart block.type: enhancementThe issue is a request for an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions