diff --git a/packages/edit-post/src/components/header/style.scss b/packages/edit-post/src/components/header/style.scss index 6676d35676b7d..2cebe45d53f7c 100644 --- a/packages/edit-post/src/components/header/style.scss +++ b/packages/edit-post/src/components/header/style.scss @@ -68,26 +68,17 @@ // Header toggle buttons. &.is-toggled { color: $white; - } - - // Put the gray background on a separate layer, so as to match the size of the publish button (34px). - &.is-toggled::before { - content: ""; - border-radius: $radius-round-rectangle; - position: absolute; - z-index: -1; background: $dark-gray-500; - top: 1px; - right: 1px; - bottom: 1px; - left: 1px; + margin: 1px; + padding: 7px; } + // The !important in this ruleset need to override the pile of :not() selectors used in the icon-button. &.is-toggled:hover, &.is-toggled:focus { - box-shadow: 0 0 0 $border-width $dark-gray-500, inset 0 0 0 $border-width $white; - color: $white; - background: $dark-gray-500; + box-shadow: 0 0 0 $border-width $dark-gray-500, inset 0 0 0 $border-width $white !important; + color: $white !important; + background: $dark-gray-500 !important; } // Make editor header bar buttons bigger to match IconButtons.