Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Ignore toolbars in focus order
  • Loading branch information
ellatrix committed May 23, 2017
commit a80502f42e6c54f7754a1cb41a4b6f8d70e1dda8
2 changes: 1 addition & 1 deletion editor/block-mover/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function BlockMover( { onMoveUp, onMoveDown, isFirst, isLast } ) {
// the rendering parent, leaving it unable to react to focus out.

return (
<div className="editor-block-mover">
<div className="editor-block-mover" tabIndex="-1">
<IconButton
className="editor-block-mover__control"
onClick={ isFirst ? null : onMoveUp }
Expand Down
3 changes: 1 addition & 2 deletions editor/modes/visual-editor/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,11 @@ class VisualEditorBlock extends wp.element.Component {
onMouseLeave={ onMouseLeave }
className={ className }
data-type={ block.blockType }
tabIndex="0"
{ ...wrapperProps }
>
{ ( showUI || isHovered ) && <BlockMover uid={ block.uid } /> }
{ showUI &&
<div className="editor-visual-editor__block-controls">
<div className="editor-visual-editor__block-controls" tabIndex="-1">
<BlockSwitcher uid={ block.uid } />
{ !! settings.controls && (
<Toolbar
Expand Down