From adbdbb713897769a18439c2e5543c49fb500bfab Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Tue, 16 Jan 2018 11:35:57 +0100 Subject: [PATCH] Try a different approach for styling movers --- components/dashicon/index.js | 1 + editor/assets/stylesheets/_mixins.scss | 8 +------ editor/components/block-mover/style.scss | 27 ++++++++++++++++++++++-- 3 files changed, 27 insertions(+), 9 deletions(-) diff --git a/components/dashicon/index.js b/components/dashicon/index.js index 15c64ac6609dad..2ce27ddaa08abe 100644 --- a/components/dashicon/index.js +++ b/components/dashicon/index.js @@ -857,6 +857,7 @@ export default class Dashicon extends wp.element.Component { return ( `s overflow + border-radius: 50%; } - &:first-child { - margin-bottom: 4px; + &:not(:disabled):hover .dashicon { + @include button-style__hover; + } + + &:not(:disabled):active .dashicon { + @include button-style__active; + } + + &:not(:disabled):focus .dashicon { + @include button-style__focus-active; } }