Skip to content

Commit

Permalink
Polish focus styles further
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen committed Jan 16, 2018
1 parent 030dec3 commit 789f955
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions editor/assets/stylesheets/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,16 @@ $float-margin: calc( 50% - #{ $visual-editor-max-width-padding / 2 } );
box-shadow: inset 0 0 0 1px $light-gray-500, inset 0 0 0 2px $white;
}

@mixin button-style__focus-active() {
@mixin button-style__active() {
outline: none;
color: $dark-gray-900;
box-shadow: inset 0 0 0 1px $dark-gray-300, inset 0 0 0 2px $white;
box-shadow: inset 0 0 0 1px $light-gray-700, inset 0 0 0 2px $white, 0 1px 1px rgba( $dark-gray-900, .2 );
}

@mixin button-style__active() {
@mixin button-style__focus-active() {
outline: none;
color: $dark-gray-900;
box-shadow: inset 0 0 0 1px $dark-gray-400, inset 0 0 0 2px $white, 0 1px 1px rgba( $dark-gray-900, .2 );
box-shadow: inset 0 0 0 1px $dark-gray-300, inset 0 0 0 2px $white;
}

@mixin tab-style__focus-active() {
Expand All @@ -146,7 +146,6 @@ $float-margin: calc( 50% - #{ $visual-editor-max-width-padding / 2 } );
@mixin input-style__focus-active() {
outline: none;
color: $dark-gray-900;
//box-shadow: 0 0 0 1px $dark-gray-500;
box-shadow: 0 0 0 1px $dark-gray-300;
}

Expand Down
1 change: 1 addition & 0 deletions editor/edit-post/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
left: 1px;
}

&.is-toggled:hover,
&.is-toggled:focus {
outline: none;
box-shadow: 0 0 0 1px $dark-gray-500, inset 0 0 0 1px $white;
Expand Down

0 comments on commit 789f955

Please sign in to comment.