diff --git a/editor/inserter/menu.js b/editor/inserter/menu.js index 154c39e1a9cca8..40486e4591544a 100644 --- a/editor/inserter/menu.js +++ b/editor/inserter/menu.js @@ -3,6 +3,7 @@ */ import { connect } from 'react-redux'; import { flow, groupBy, sortBy, findIndex, filter } from 'lodash'; +import classnames from 'classnames'; /** * WordPress dependencies @@ -224,9 +225,11 @@ class InserterMenu extends wp.element.Component { render() { const { position = 'top' } = this.props; const visibleBlocksByCategory = this.getVisibleBlocksByCategory( wp.blocks.getBlocks() ); + const positionClasses = position.split( ' ' ).map( ( pos ) => `is-${ pos }` ); + const className = classnames( 'editor-inserter__menu', positionClasses ); return ( -