Skip to content

Commit

Permalink
EllipsisMenu: Adopt areas Editor, Settings, Tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf committed Jan 12, 2018
1 parent 106e72d commit a9a867d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 4 additions & 2 deletions editor/edit-post/header/editor-actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
* WordPress dependencies
*/
import { MenuItemsGroup } from '@wordpress/components';
import { __ } from '@wordpress/i18n';

/**
* Internal dependencies
*/
import './style.scss';
import CopyContentButton from '../copy-content-button';

export default function EditorActions() {
return (
<MenuItemsGroup className="editor-actions">
<MenuItemsGroup className="editor-actions"
label={ __( 'Tools' ) }
>
<CopyContentButton />
</MenuItemsGroup>
);
Expand Down
3 changes: 0 additions & 3 deletions editor/edit-post/header/editor-actions/style.scss

This file was deleted.

3 changes: 2 additions & 1 deletion editor/edit-post/header/ellipsis-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ const element = (
renderContent={ ( { onClose } ) => (
<div>
<ModeSwitcher onSelect={ onClose } />
<EditorActions />
<div className="editor-ellipsis-menu__separator" />
<FixedToolbarToggle onToggle={ onClose } />
<div className="editor-ellipsis-menu__separator" />
<EditorActions />
</div>
) }
/>
Expand Down
2 changes: 1 addition & 1 deletion editor/edit-post/header/fixed-toolbar-toggle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function FeatureToggle( { onToggle, active, onMobile } ) {
}
return (
<MenuItemsGroup
label={ __( 'Toolbar' ) }
label={ __( 'Settings' ) }
>
<MenuItemsToggle
label={ __( 'Fix toolbar to top' ) }
Expand Down

0 comments on commit a9a867d

Please sign in to comment.