Skip to content

Commit

Permalink
Adjust block inserter style. (#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
miina authored and swissspidy committed Aug 22, 2019
1 parent 35cbe39 commit 55e9006
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions assets/src/stories-editor/components/inserter/edit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.amp__block-editor-inserter__menu.block-editor-inserter__menu {
flex-direction: column;
}
1 change: 1 addition & 0 deletions assets/src/stories-editor/components/inserter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { withSelect } from '@wordpress/data';
* Internal dependencies
*/
import InserterMenu from './menu'; // eslint-disable-line import/no-named-as-default
import './edit.css';

const defaultRenderToggle = ( { onToggle, disabled, isOpen } ) => (
<IconButton
Expand Down
6 changes: 3 additions & 3 deletions assets/src/stories-editor/components/inserter/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export class InserterMenu extends Component {
/* eslint-disable jsx-a11y/no-autofocus, jsx-a11y/no-static-element-interactions */
return (
<div
className="editor-inserter__menu block-editor-inserter__menu"
className="editor-inserter__menu block-editor-inserter__menu amp__block-editor-inserter__menu"
onKeyPress={ stopKeyPropagation }
onKeyDown={ this.onKeyDown }
>
Expand All @@ -285,13 +285,13 @@ export class InserterMenu extends Component {
id={ `block-editor-inserter__search-${ instanceId }` }
type="search"
placeholder={ __( 'Search for an element', 'amp' ) }
className="editor-inserter__search block-editor-inserter__search"
className="editor-inserter__search block-editor-inserter__search amp__block-editor-inserter__search"
autoFocus
onChange={ this.onChangeSearchInput }
/>

<div
className="editor-inserter__results block-editor-inserter__results"
className="editor-inserter__results amp__block-editor-inserter__results block-editor-inserter__results"
ref={ this.inserterResults }
tabIndex="0"
role="region"
Expand Down

0 comments on commit 55e9006

Please sign in to comment.