Skip to content

Commit

Permalink
Improve appearance of hover on colored backgrounds. (#14501)
Browse files Browse the repository at this point in the history
* Use transparency in hover state left borders.
  • Loading branch information
kjellr authored Mar 20, 2019
1 parent 4d65116 commit 233446b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/block-editor/src/components/block-list/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@

// Hover style.
&.is-hovered > .block-editor-block-list__block-edit::before {
box-shadow: -$block-left-border-width 0 0 0 $light-gray-500;
box-shadow: -$block-left-border-width 0 0 0 $dark-opacity-light-500;

.is-dark-theme & {
box-shadow: -$block-left-border-width 0 0 0 $dark-gray-600;
box-shadow: -$block-left-border-width 0 0 0 $light-opacity-light-400;
}
}

Expand Down
6 changes: 5 additions & 1 deletion packages/editor/src/components/post-title/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@

&:not(.is-focus-mode):not(.has-fixed-toolbar):not(.is-selected) {
.editor-post-title__input:hover {
box-shadow: -$block-left-border-width 0 0 0 $light-gray-500;
box-shadow: -$block-left-border-width 0 0 0 $dark-opacity-light-500;

.is-dark-theme & {
box-shadow: -$block-left-border-width 0 0 0 $light-opacity-light-400;
}
}
}

Expand Down

0 comments on commit 233446b

Please sign in to comment.