Skip to content

Commit

Permalink
Remove focus outline from editable block
Browse files Browse the repository at this point in the history
Focus appearance managed by editor block renderer
  • Loading branch information
aduth committed Apr 6, 2017
1 parent c607602 commit 9365a74
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions blocks/components/editable/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/**
* Internal dependencies
*/
import './style.scss';

export default class Editable extends wp.element.Component {
constructor() {
super( ...arguments );
Expand Down
3 changes: 3 additions & 0 deletions blocks/components/editable/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.blocks-editable:focus {
outline: none;
}
4 changes: 3 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function gutenberg_register_scripts() {
wp_register_script( 'wp-i18n', plugins_url( 'i18n/build/index.js', __FILE__ ) );
wp_register_script( 'wp-element', plugins_url( 'element/build/index.js', __FILE__ ), array( 'react', 'react-dom' ) );
wp_register_script( 'wp-blocks', plugins_url( 'blocks/build/index.js', __FILE__ ), array( 'wp-element', 'tinymce-nightly' ) );
wp_register_style( 'wp-blocks', plugins_url( 'blocks/build/style.css', __FILE__ ) );
}
add_action( 'init', 'gutenberg_register_scripts' );

Expand Down Expand Up @@ -206,7 +207,8 @@ function gutenberg_scripts_and_styles( $hook ) {
);
wp_enqueue_style(
'wp-editor',
plugins_url( 'editor/build/style.css', __FILE__ )
plugins_url( 'editor/build/style.css', __FILE__ ),
array( 'wp-blocks' )
);
}
add_action( 'admin_enqueue_scripts', 'gutenberg_scripts_and_styles' );
Expand Down

0 comments on commit 9365a74

Please sign in to comment.