Skip to content

Commit

Permalink
Remove role from Remove button, and remove Trash from menu.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen committed Apr 13, 2018
1 parent 82867b6 commit 0159c8a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/components/block-settings-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class BlockSettingsMenu extends Component {
onFocus={ this.onFocus }
onBlur={ this.onBlur }
/>,
<BlockRemoveButton key="remove" uids={ uids } role="menuitem" />
<BlockRemoveButton key="remove" uids={ uids } />
];
} }
renderContent={ ( { onClose } ) => (
Expand All @@ -93,7 +93,6 @@ export class BlockSettingsMenu extends Component {
{ renderBlockMenu( { onClose, children: [
count === 1 && <BlockModeToggle key="mode-toggle" uid={ uids[ 0 ] } onToggle={ onClose } role="menuitem" />,
count === 1 && <UnknownConverter key="unknown-converter" uid={ uids[ 0 ] } role="menuitem" />,
<BlockRemoveButton key="remove" uids={ uids } role="menuitem" />,
<BlockDuplicateButton key="duplicate" uids={ uids } rootUID={ rootUID } role="menuitem" />,
count === 1 && <SharedBlockSettings key="shared-block" uid={ uids[ 0 ] } onToggle={ onClose } itemsRole="menuitem" />,
<BlockTransformations key="transformations" uids={ uids } onClick={ onClose } itemsRole="menuitem" />,
Expand Down

0 comments on commit 0159c8a

Please sign in to comment.