Gutenberg: Block API: Integrate variations with the `/` inserter

Created on 2 Mar 2020  路  7Comments  路  Source: WordPress/gutenberg

Description

Follow-up for #16283.

With https://github.com/WordPress/gutenberg/pull/19243, we integrate block variations API with the inserter. We still should seek a way to do a follow-up for the / inserter. At the moment, it only lists block types.

Needs Dev [Feature] Block API [Type] Enhancement

Most helpful comment

+1 to this. I just lost 40mins thinking I was doing something wrong because variations were not showing up, only to realize they don't show in the / inserter. 馃槅

All 7 comments

It's a bit unfortunate that the quick inserter is so separate from the main one. Changes to what gets listed there should propagate more easily.

+1 to this. I just lost 40mins thinking I was doing something wrong because variations were not showing up, only to realize they don't show in the / inserter. 馃槅

Is there already terminology for this kind of inserter?
"/"-Inserter
Quick-Inserter
Shortcut-Inserter
Fast-Inserter
?

Really need this for our plugin with Gallery and Posts blocks:

Let's see if I got this right.
One block can show up in multiple ways through the inserter panel.
I remember testing a PR some time ago where the Navigation showed up twice regular horizontal and a vertical mode. This is actually much more a layout choice / styles choice.

EDIT:
Meaning there should only be one Navigation Block in the '/' and the Inserter panel. Variations/layouts would exist in a block. See my comment here: https://github.com/WordPress/gutenberg/issues/20584#issuecomment-642542169

The example @nk-o shares seems to me more like styles and should be added to the Styles Panel. Having 5 options for the same block in the inserter is not the level it should be at.

I remember testing a PR some time ago where the Navigation showed up twice regular horizontal and a vertical mode. This is actually much more a layout choice / styles choice.

Probably this issue.

@paaljoachim variations when exposed in inserter are to be considered new blocks, so they are meant to show up in all inserting contexts. What specific block choose to do is a separate conversation altogether.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nylen picture nylen  路  3Comments

jasmussen picture jasmussen  路  3Comments

moorscode picture moorscode  路  3Comments

maddisondesigns picture maddisondesigns  路  3Comments

spocke picture spocke  路  3Comments