From ef44f7060d88249b47ed1acb33552c0b2c92ba52 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 23 Jun 2017 19:48:03 +0200 Subject: [PATCH 1/3] Add some missing focus style. Restyle the mode switcher select. --- editor/assets/stylesheets/_z-index.scss | 1 - editor/header/mode-switcher/index.js | 1 + editor/header/mode-switcher/style.scss | 32 ++++++++++++++----------- editor/header/saved-state/style.scss | 1 - editor/sidebar/post-trash/index.js | 2 +- editor/sidebar/post-trash/style.scss | 18 ++++++-------- 6 files changed, 27 insertions(+), 28 deletions(-) diff --git a/editor/assets/stylesheets/_z-index.scss b/editor/assets/stylesheets/_z-index.scss index 39c610e1f57f63..24683bbbf42f01 100644 --- a/editor/assets/stylesheets/_z-index.scss +++ b/editor/assets/stylesheets/_z-index.scss @@ -3,7 +3,6 @@ // value is designed to work with). $z-layers: ( - '.editor-mode-switcher .dashicon': -1, '.editor-block-switcher__arrow': 1, '.editor-visual-editor__block:before': -1, '.editor-visual-editor__block {core/image aligned left or right}': 10, diff --git a/editor/header/mode-switcher/index.js b/editor/header/mode-switcher/index.js index a5af46d452ab6b..579ae41fed261a 100644 --- a/editor/header/mode-switcher/index.js +++ b/editor/header/mode-switcher/index.js @@ -40,6 +40,7 @@ function ModeSwitcher( { mode, onSwitch } ) { /* eslint-disable jsx-a11y/no-onchange */ return (
+ onSwitch( event.target.value ) } className="editor-mode-switcher__input" + id="editor-mode-switcher__input" > { MODES.map( ( { value, label } ) =>