From d8e29b35d3ecf53322feb895ab7b4174cca74c36 Mon Sep 17 00:00:00 2001 From: Kjell Reigstad Date: Mon, 25 Mar 2019 09:00:35 -0400 Subject: [PATCH] Add gray background to appender, plus dark theme styles. --- .../components/block-list-appender/style.scss | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-list-appender/style.scss b/packages/block-editor/src/components/block-list-appender/style.scss index 9f53f7572f1799..9449ab4d034b77 100644 --- a/packages/block-editor/src/components/block-list-appender/style.scss +++ b/packages/block-editor/src/components/block-list-appender/style.scss @@ -10,8 +10,25 @@ outline: $border-width dashed $dark-gray-150; width: 100%; color: $dark-gray-500; + background-color: $dark-opacity-light-100; - &:hover { + // Multiple :not() are necessary to override default button styles. + &:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover { outline: $border-width dashed $dark-gray-500; + background-color: $dark-opacity-light-100; + box-shadow: none; + } + + // Use opacity to work in various editor styles + .is-dark-theme & { + background-color: $light-opacity-light-100; + color: $light-gray-100; + + &:not(:disabled):not([aria-disabled="true"]):not(.is-default):hover, + &:focus { + outline: $border-width dashed $white; + background-color: $light-opacity-light-100; + color: $white; + } } }