diff --git a/packages/base-styles/_colors.scss b/packages/base-styles/_colors.scss index bbc0a08671de44..ddcd5afdf21abc 100644 --- a/packages/base-styles/_colors.scss +++ b/packages/base-styles/_colors.scss @@ -29,8 +29,9 @@ $white: #fff; $dark-gray-primary: #1e1e1e; $medium-gray-text: #757575; $light-gray-secondary: #ccc; +$light-gray-tertiary: #e7e8e9; $theme-color: theme(button); -$blue-medium-focus: #007cba; // @todo: consider revisiting for theme colors. +$blue-medium-focus: #007cba; // @todo: Currently being used as "spot" color. Needs to be considered in context of themes. $blue-medium-focus-dark: #fff; // Dark opacities, for use with light themes. diff --git a/packages/base-styles/_mixins.scss b/packages/base-styles/_mixins.scss index 129cfe219a8be9..e74f8924cec7fd 100644 --- a/packages/base-styles/_mixins.scss +++ b/packages/base-styles/_mixins.scss @@ -214,35 +214,26 @@ } @mixin block-style__hover { - background: $light-gray-200; - color: $dark-gray-900 !important; + border-color: $theme-color; + color: $theme-color !important; } @mixin block-style__focus() { - color: $dark-gray-900; - box-shadow: 0 0 0 1px $white, 0 0 0 3px $blue-medium-500; + box-shadow: inset 0 0 0 1px $white, 0 0 0 2px $theme-color; // Windows High Contrast mode will show this outline, but not the box-shadow. outline: 2px solid transparent; } @mixin block-style__is-active() { - color: $dark-gray-900; - box-shadow: inset 0 0 0 2px $dark-gray-500; + color: $white; + background: $dark-gray-primary; // Windows High Contrast mode will show this outline, but not the box-shadow. outline: 2px solid transparent; outline-offset: -2px; } -@mixin block-style__is-active-focus() { - color: $dark-gray-900; - box-shadow: 0 0 0 1px $white, 0 0 0 3px $blue-medium-500, inset 0 0 0 2px $dark-gray-500; - - // Windows High Contrast mode will show this outline, but not the box-shadow. - outline: 4px solid transparent; - outline-offset: -4px; -} /** * Applies editor left position to the selector passed as argument diff --git a/packages/base-styles/_variables.scss b/packages/base-styles/_variables.scss index bc41846e53796d..6164d7d8b2f0d2 100644 --- a/packages/base-styles/_variables.scss +++ b/packages/base-styles/_variables.scss @@ -58,7 +58,7 @@ $grid-size-xlarge: 24px; */ $panel-padding: 16px; -$header-height: 56px; +$header-height: 60px; $panel-header-height: 50px; $admin-bar-height: 32px; $admin-bar-height-big: 46px; @@ -74,9 +74,7 @@ $spinner-size: 18px; * Shadows. */ -$shadow-popover: 0 3px 30px rgba($dark-gray-900, 0.1); -$shadow-toolbar: 0 2px 10px rgba($dark-gray-900, 0.1), 0 0 2px rgba($dark-gray-900, 0.1); -$shadow-below-only: 0 5px 10px rgba($dark-gray-900, 0.05), 0 2px 2px rgba($dark-gray-900, 0.05); +$shadow-popover: 0 2px 6px rgba($black, 0.05); $shadow-modal: 0 3px 30px rgba($dark-gray-900, 0.2); @@ -94,10 +92,9 @@ $widget-area-width: 700px; */ $border-width: 1px; -$block-controls-height: 36px; $icon-button-size: 36px; -$icon-button-size-small: 24px; $inserter-tabs-height: 36px; +$icon-button-size-small: 24px; $block-toolbar-height: $grid-unit-60; $resize-handler-size: 15px; $resize-handler-container-size: $resize-handler-size + ($grid-unit-05 * 2); // Make the resize handle container larger so there's a larger grabbable area. diff --git a/packages/block-editor/src/components/block-breadcrumb/style.scss b/packages/block-editor/src/components/block-breadcrumb/style.scss index 485f8edf703691..daa9169bb17652 100644 --- a/packages/block-editor/src/components/block-breadcrumb/style.scss +++ b/packages/block-editor/src/components/block-breadcrumb/style.scss @@ -35,7 +35,7 @@ .block-editor-block-breadcrumb__button.components-button, .block-editor-block-breadcrumb__current { - color: $dark-gray-500; + color: $dark-gray-primary; padding: 0 $grid-unit-10; font-size: inherit; } diff --git a/packages/block-editor/src/components/block-list/style.scss b/packages/block-editor/src/components/block-list/style.scss index f46b9c3b06c4ea..08523bb8c9821a 100644 --- a/packages/block-editor/src/components/block-list/style.scss +++ b/packages/block-editor/src/components/block-list/style.scss @@ -96,6 +96,11 @@ // 2px outside. box-shadow: 0 0 0 2px $blue-medium-focus; border-radius: $radius-block-ui; + + // Show a light color for dark themes. + .is-dark-theme & { + box-shadow: 0 0 0 2px $blue-medium-focus-dark; + } } // Spotlight mode. @@ -137,7 +142,6 @@ .is-navigate-mode & .block-editor-block-list__block.is-selected, .block-editor-block-list__block.is-multi-selected { - // Show selection borders around every non-nested block's actual footprint. &::after { position: absolute; @@ -159,9 +163,9 @@ // Windows High Contrast mode will show this outline. outline: 2px solid transparent; - // Show a lighter blue for dark themes. + // Show a lighter color for dark themes. .is-dark-theme & { - box-shadow: 0 0 0 1px $blue-medium-focus-dark, inset 0 0 0 1px $blue-medium-focus-dark; + box-shadow: 0 0 0 2px $blue-medium-focus-dark; } } @@ -178,7 +182,6 @@ .block-editor-block-list__block.is-block-collapsed::after { content: none; } - } @@ -361,21 +364,13 @@ } } +// Sibling inserter / "inbetweenserter". .block-editor-block-list__insertion-point-inserter, .block-editor-block-list__block-popover-inserter { - // Show a clickable plus. .block-editor-inserter__toggle.components-button { - border-radius: 50%; - color: $blue-medium-focus; - background: $white; - height: $block-padding * 2; - width: $block-padding * 2; - padding: 0; - justify-content: center; - - &:not(:disabled):not([aria-disabled="true"]):hover { - box-shadow: none; - } + // Special dimensions for this button. + min-width: 32px; + height: 32px; } } @@ -422,12 +417,13 @@ /** - * Block Toolbar when contextual. + * Block Toolbar, top and contextual. */ .block-editor-block-contextual-toolbar-wrapper { padding-left: $block-toolbar-height; // Provide space for the mover control on full-wide items. } +.edit-post-header-toolbar__block-toolbar, .block-editor-block-contextual-toolbar { // Adapt the height of the toolbar items. .components-toolbar { @@ -439,7 +435,14 @@ .components-button { height: $block-toolbar-height; } +} + +/** + * Block Toolbar when contextual. + */ + +.block-editor-block-contextual-toolbar { // Block UI appearance. border: $border-width solid $dark-gray-primary; border-radius: $radius-block-ui; @@ -474,6 +477,7 @@ // When button is focused, it receives a box-shadow instead of the border. &:focus { border: none; + box-shadow: inset 0 0 0 1px color($theme-color), 0 0 0 1px color($theme-color); } } diff --git a/packages/block-editor/src/components/block-mover/style.scss b/packages/block-editor/src/components/block-mover/style.scss index f1f07ea66fe1dc..83dcf5c459fe60 100644 --- a/packages/block-editor/src/components/block-mover/style.scss +++ b/packages/block-editor/src/components/block-mover/style.scss @@ -7,12 +7,12 @@ display: none; } -.block-editor-block-mover__control { +.block-editor-block-mover__control.has-icon { padding: 0; } // Show the mover in a single button under the contextual toolbar. -.block-editor-block-contextual-toolbar .block-editor-block-mover { +.block-editor-block-mover { .components-toolbar { flex-direction: column; } @@ -22,7 +22,7 @@ } // Position the icons correctly. - .block-editor-block-mover__control-up { + .components-toolbar .block-editor-block-mover__control-up { svg { margin-bottom: -$grid-unit-10; } @@ -34,7 +34,7 @@ } } - .block-editor-block-mover__control-down { + .components-toolbar .block-editor-block-mover__control-down { svg { margin-top: -$grid-unit-10; } @@ -52,7 +52,8 @@ height: $block-toolbar-height; width: $block-toolbar-height/2 !important; min-width: $grid-unit-30; - padding: 0; + padding-left: 0; + padding-right: 0; // Focus style. &::before { diff --git a/packages/block-editor/src/components/block-navigation/style.scss b/packages/block-editor/src/components/block-navigation/style.scss index 684d465ee1869b..b912462076fda9 100644 --- a/packages/block-editor/src/components/block-navigation/style.scss +++ b/packages/block-editor/src/components/block-navigation/style.scss @@ -92,8 +92,8 @@ $tree-item-height: 36px; &.is-selected, &.is-selected:focus { - color: $dark-gray-700; - background: $light-gray-300; + color: $white; + background: $dark-gray-primary; } } diff --git a/packages/block-editor/src/components/block-settings-menu/block-convert-button.js b/packages/block-editor/src/components/block-settings-menu/block-convert-button.js index ff2101bd488feb..130ca47aa47167 100644 --- a/packages/block-editor/src/components/block-settings-menu/block-convert-button.js +++ b/packages/block-editor/src/components/block-settings-menu/block-convert-button.js @@ -3,7 +3,6 @@ */ import { __ } from '@wordpress/i18n'; import { MenuItem } from '@wordpress/components'; -import { grid } from '@wordpress/icons'; export default function BlockConvertButton( { shouldRender, onClick, small } ) { if ( ! shouldRender ) { @@ -11,9 +10,5 @@ export default function BlockConvertButton( { shouldRender, onClick, small } ) { } const label = __( 'Convert to Blocks' ); - return ( - - { ! small && label } - - ); + return { ! small && label }; } diff --git a/packages/block-editor/src/components/block-settings-menu/block-mode-toggle.js b/packages/block-editor/src/components/block-settings-menu/block-mode-toggle.js index da62a6de6f3dea..79e9af7277110b 100644 --- a/packages/block-editor/src/components/block-settings-menu/block-mode-toggle.js +++ b/packages/block-editor/src/components/block-settings-menu/block-mode-toggle.js @@ -11,7 +11,6 @@ import { MenuItem } from '@wordpress/components'; import { getBlockType, hasBlockSupport } from '@wordpress/blocks'; import { withSelect, withDispatch } from '@wordpress/data'; import { compose } from '@wordpress/compose'; -import { html } from '@wordpress/icons'; export function BlockModeToggle( { blockType, @@ -30,11 +29,7 @@ export function BlockModeToggle( { const label = mode === 'visual' ? __( 'Edit as HTML' ) : __( 'Edit visually' ); - return ( - - { ! small && label } - - ); + return { ! small && label }; } export default compose( [ diff --git a/packages/block-editor/src/components/block-settings-menu/index.js b/packages/block-editor/src/components/block-settings-menu/index.js index d605be050f5c6e..9713f0046beb52 100644 --- a/packages/block-editor/src/components/block-settings-menu/index.js +++ b/packages/block-editor/src/components/block-settings-menu/index.js @@ -14,13 +14,7 @@ import { MenuItem, } from '@wordpress/components'; import { useSelect } from '@wordpress/data'; -import { - page, - trash, - moreHorizontal, - insertAfter, - insertBefore, -} from '@wordpress/icons'; +import { moreHorizontal } from '@wordpress/icons'; /** * Internal dependencies @@ -35,6 +29,7 @@ import __experimentalBlockSettingsMenuPluginsExtension from './block-settings-me const POPOVER_PROPS = { className: 'block-editor-block-settings-menu__popover', position: 'bottom right', + noArrow: true, }; export function BlockSettingsMenu( { clientIds } ) { @@ -77,6 +72,7 @@ export function BlockSettingsMenu( { clientIds } ) { label={ __( 'More options' ) } className="block-editor-block-settings-menu" popoverProps={ POPOVER_PROPS } + noIcons > { ( { onClose } ) => ( <> @@ -100,7 +96,6 @@ export function BlockSettingsMenu( { clientIds } ) { onClose, onDuplicate ) } - icon={ page } shortcut={ shortcuts.duplicate } > { __( 'Duplicate' ) } @@ -113,7 +108,6 @@ export function BlockSettingsMenu( { clientIds } ) { onClose, onInsertBefore ) } - icon={ insertBefore } shortcut={ shortcuts.insertBefore } @@ -125,7 +119,6 @@ export function BlockSettingsMenu( { clientIds } ) { onClose, onInsertAfter ) } - icon={ insertAfter } shortcut={ shortcuts.insertAfter } @@ -151,7 +144,6 @@ export function BlockSettingsMenu( { clientIds } ) { onClose, onRemove ) } - icon={ trash } shortcut={ shortcuts.remove } > { _n( diff --git a/packages/block-editor/src/components/block-styles/style.scss b/packages/block-editor/src/components/block-styles/style.scss index 63b1f311164438..da6c8d0ebbbb79 100644 --- a/packages/block-editor/src/components/block-styles/style.scss +++ b/packages/block-editor/src/components/block-styles/style.scss @@ -20,14 +20,14 @@ &:hover { @include block-style__hover; + + .block-editor-block-styles__item-preview { + border-color: $theme-color; + } } &.is-active { @include block-style__is-active(); - - &:focus { - @include block-style__is-active-focus(); - } } } @@ -35,7 +35,7 @@ .block-editor-block-styles__item-preview { outline: $border-width solid transparent; // Shown in Windows High Contrast mode. padding: 0; - border: $border-width solid rgba($dark-gray-900, 0.2); + border: $border-width solid rgba($dark-gray-primary, 0.2); border-radius: $radius-round-rectangle; display: flex; overflow: hidden; diff --git a/packages/block-editor/src/components/block-switcher/index.js b/packages/block-editor/src/components/block-switcher/index.js index f026fb768702e2..e74cfc9ad94b76 100644 --- a/packages/block-editor/src/components/block-switcher/index.js +++ b/packages/block-editor/src/components/block-switcher/index.js @@ -7,7 +7,7 @@ import { castArray, filter, first, mapKeys, orderBy, uniq, map } from 'lodash'; * WordPress dependencies */ import { __, _n, sprintf } from '@wordpress/i18n'; -import { Dropdown, Button, Toolbar, PanelBody } from '@wordpress/components'; +import { Dropdown, Button, Toolbar, MenuGroup } from '@wordpress/components'; import { getBlockType, getPossibleBlockTransformations, @@ -143,10 +143,10 @@ export class BlockSwitcher extends Component { possibleBlockTransformations.length !== 0 ) && (
{ hasBlockStyles && ( - + +
+ { __( 'Styles' ) } +
-
+ ) } { possibleBlockTransformations.length !== 0 && ( - + +
+ { __( 'Transform to' ) } +
( { @@ -177,7 +177,7 @@ export class BlockSwitcher extends Component { onClose(); } } /> -
+ ) }
) } diff --git a/packages/block-editor/src/components/block-switcher/style.scss b/packages/block-editor/src/components/block-switcher/style.scss index 32e7e3ba74f4a9..deb97b464b4541 100644 --- a/packages/block-editor/src/components/block-switcher/style.scss +++ b/packages/block-editor/src/components/block-switcher/style.scss @@ -10,13 +10,19 @@ display: none; content: ""; position: absolute; - bottom: 0; + bottom: 1px; right: 0; border-color: transparent; border-style: solid; + border-width: 4px; + border-right-color: currentColor; + border-bottom-color: currentColor; + transition: border 0.2s cubic-bezier(0.25, 0.1, 0.25, 1); + } + + // Grow the indicator a little bit on hover. + &:hover::after { border-width: 5px; - border-right-color: $dark-gray-primary; - border-bottom-color: $dark-gray-primary; } } @@ -25,7 +31,7 @@ .components-button.block-editor-block-switcher__no-switcher-icon { margin: 0; display: block; - height: $icon-button-size; + height: $grid-unit-60; .block-editor-block-icon { margin: auto; @@ -85,6 +91,14 @@ background: $white; box-shadow: $shadow-popover; padding: 0; + + .components-menu-group { + padding: $grid-unit-20 $grid-unit-30; + } + + .components-menu-group + .components-menu-group { + border-color: $light-gray-secondary; + } } .block-editor-block-switcher__popover .components-popover__content { @@ -94,6 +108,11 @@ width: 50%; } + .block-editor-block-switcher__label { + margin-bottom: $grid-unit-10; + color: $medium-gray-text; + } + @include break-medium { position: relative; @@ -131,7 +150,7 @@ } .block-editor-block-switcher__popover .block-editor-block-types-list { - margin: 8px -8px -8px; + margin: $grid-unit-15 0 0 0; } .block-editor-block-switcher__preview-title { @@ -143,11 +162,11 @@ .block-editor-block-contextual-toolbar { .components-button.block-editor-block-switcher__toggle, .components-button.block-editor-block-switcher__no-switcher-icon { - height: $block-toolbar-height; + height: $grid-unit-60; } .components-button.block-editor-block-switcher__no-switcher-icon { - width: $block-toolbar-height; + width: $grid-unit-60; } .components-button.block-editor-block-switcher__toggle { diff --git a/packages/block-editor/src/components/block-toolbar/index.js b/packages/block-editor/src/components/block-toolbar/index.js index fba81f9fb179ae..7061911f6846ad 100644 --- a/packages/block-editor/src/components/block-toolbar/index.js +++ b/packages/block-editor/src/components/block-toolbar/index.js @@ -1,3 +1,7 @@ +/** + * External dependencies + */ +import classnames from 'classnames'; /** * WordPress dependencies */ @@ -17,6 +21,7 @@ import { useShowMoversGestures } from './utils'; export default function BlockToolbar( { hideDragHandle } ) { const { blockClientIds, + hasFixedToolbar, isValid, mode, moverDirection, @@ -39,6 +44,9 @@ export default function BlockToolbar( { hideDragHandle } ) { return { blockClientIds: selectedBlockClientIds, + hasFixedToolbar: select( 'core/edit-post' ).isFeatureActive( + 'fixedToolbar' + ), rootClientId: blockRootClientId, isValid: selectedBlockClientIds.length === 1 @@ -61,7 +69,9 @@ export default function BlockToolbar( { hideDragHandle } ) { } = useShowMoversGestures( { ref: nodeRef } ); const shouldShowMovers = - useViewportMatch( 'medium', '<' ) || ( showMovers && hasMovers ); + useViewportMatch( 'medium', '<' ) || + hasFixedToolbar || + ( showMovers && hasMovers ); if ( blockClientIds.length === 0 ) { return null; @@ -75,8 +85,13 @@ export default function BlockToolbar( { hideDragHandle } ) { transform: shouldShowMovers ? 'translateX(0px)' : 'translateX(100%)', }; + const classes = classnames( + 'block-editor-block-toolbar', + ! hasFixedToolbar && 'has-responsive-movers' + ); + return ( -
+
:last-child .components-toolbar { border-right: none; } + + // Add a border and adjust the color for Top Toolbar mode. + .has-fixed-toolbar & { + .block-editor-block-mover .components-toolbar { + border-left: $border-width solid $light-gray-500; + } + .components-toolbar { + border-color: $light-gray-500; + } + } } .block-editor-block-toolbar, @@ -173,16 +183,6 @@ right: $grid-unit-10; } } - - // Add a left border and adjust the color for Top Toolbar mode. - .has-fixed-toolbar & { - box-shadow: none; - border-left: $border-width solid $light-gray-500; - - .components-toolbar { - border-color: $light-gray-500; - } - } } .block-editor-block-toolbar__slot { @@ -201,34 +201,37 @@ display: flex; } -.block-editor-block-toolbar__mover-trigger-container { - @include break-medium() { - bottom: -1px; - left: -1px; - position: absolute; - top: -1px; - transform: translateX(-48px); - user-select: none; - z-index: -1; // This makes it slide out from underneath the toolbar. +.block-editor-block-toolbar__block-switcher-wrapper { + .block-editor-block-switcher { + display: block; } } -.block-editor-block-toolbar__mover-trigger-wrapper:not(:empty) { - @include break-medium() { - background-color: $white; - border: 1px solid $black; - border-bottom-left-radius: 2px; - border-top-left-radius: 2px; - border-right: none; - height: 100%; - transition: all 60ms linear; +.block-editor-block-toolbar.has-responsive-movers { + .block-editor-block-toolbar__mover-trigger-container { + @include break-medium() { + bottom: -1px; + left: -1px; + position: absolute; + top: -1px; + transform: translateX(-48px); + user-select: none; + z-index: -1; // This makes it slide out from underneath the toolbar. + } } - @include reduce-motion("transition"); -} + .block-editor-block-toolbar__mover-trigger-wrapper:not(:empty) { + @include break-medium() { + background-color: $white; + border: 1px solid $black; + border-bottom-left-radius: 2px; + border-top-left-radius: 2px; + border-right: none; + height: 100%; + transition: all 60ms linear; + } -.block-editor-block-toolbar__block-switcher-wrapper { - .block-editor-block-switcher { - display: block; + @include reduce-motion("transition"); } } + diff --git a/packages/block-editor/src/components/default-block-appender/style.scss b/packages/block-editor/src/components/default-block-appender/style.scss index 8b9fcc823659f3..9b56de6dd87991 100644 --- a/packages/block-editor/src/components/default-block-appender/style.scss +++ b/packages/block-editor/src/components/default-block-appender/style.scss @@ -94,21 +94,6 @@ &:disabled { display: none; } - - .block-editor-inserter__toggle { - border-radius: 50%; - width: $block-side-ui-width; - height: $block-side-ui-width; - padding: 0; - - // Use opacity to work in various editor styles. - &:not(:hover) { - color: $dark-opacity-500; - .is-dark-theme & { - color: $light-opacity-500; - } - } - } } .block-editor-default-block-appender .block-editor-inserter { diff --git a/packages/block-editor/src/components/editor-skeleton/style.scss b/packages/block-editor/src/components/editor-skeleton/style.scss index fe20befd2089bd..75a85fd604cc73 100644 --- a/packages/block-editor/src/components/editor-skeleton/style.scss +++ b/packages/block-editor/src/components/editor-skeleton/style.scss @@ -105,6 +105,7 @@ html.block-editor-editor-skeleton__html-container { bottom: 0; left: 0; background: $white; + color: $dark-gray-primary; // On Mobile the header is fixed to keep HTML as scrollable. @include break-medium() { @@ -120,6 +121,7 @@ html.block-editor-editor-skeleton__html-container { height: auto; // Keep the height flexible. border-bottom: $border-width solid $light-gray-500; z-index: z-index(".block-editor-editor-skeleton__header"); + color: $dark-gray-primary; // On Mobile the header is sticky. position: sticky; @@ -135,8 +137,8 @@ html.block-editor-editor-skeleton__html-container { .block-editor-editor-skeleton__footer { height: auto; // Keep the height flexible. flex-shrink: 0; - overflow: auto; border-top: $border-width solid $light-gray-500; + color: $dark-gray-primary; // On Mobile the footer is hidden display: none; @@ -153,6 +155,7 @@ html.block-editor-editor-skeleton__html-container { left: auto; right: 0; width: $sidebar-width; + color: $dark-gray-primary; &:focus { top: auto; diff --git a/packages/block-editor/src/components/inserter-list-item/style.scss b/packages/block-editor/src/components/inserter-list-item/style.scss index 7bbe6a156934c8..6b63e1cc520718 100644 --- a/packages/block-editor/src/components/inserter-list-item/style.scss +++ b/packages/block-editor/src/components/inserter-list-item/style.scss @@ -35,10 +35,6 @@ &.is-active { @include block-style__is-active(); - - &:focus { - @include block-style__is-active-focus(); - } } } } diff --git a/packages/block-editor/src/components/inserter/index.js b/packages/block-editor/src/components/inserter/index.js index 11f07899494b4b..2c434fae89edc0 100644 --- a/packages/block-editor/src/components/inserter/index.js +++ b/packages/block-editor/src/components/inserter/index.js @@ -25,6 +25,7 @@ const defaultRenderToggle = ( { isOpen, blockTitle, hasSingleBlockType, + toggleProps, } ) => { let label; if ( hasSingleBlockType ) { @@ -46,6 +47,7 @@ const defaultRenderToggle = ( { aria-haspopup={ ! hasSingleBlockType ? 'true' : false } aria-expanded={ ! hasSingleBlockType ? isOpen : false } disabled={ disabled } + { ...toggleProps } /> ); }; @@ -83,6 +85,7 @@ class Inserter extends Component { disabled, blockTitle, hasSingleBlockType, + toggleProps, renderToggle = defaultRenderToggle, } = this.props; @@ -92,6 +95,7 @@ class Inserter extends Component { disabled, blockTitle, hasSingleBlockType, + toggleProps, } ); } diff --git a/packages/block-editor/src/components/inserter/style.scss b/packages/block-editor/src/components/inserter/style.scss index 25bda30e2cdb68..980d977e11d364 100644 --- a/packages/block-editor/src/components/inserter/style.scss +++ b/packages/block-editor/src/components/inserter/style.scss @@ -17,7 +17,7 @@ $block-inserter-search-height: 38px; } .block-editor-inserter__popover > .components-popover__content { - padding: 0; + padding: 0 0 $border-width 0; @include break-medium { overflow-y: visible; @@ -25,6 +25,17 @@ $block-inserter-search-height: 38px; } } +.block-editor-inserter__toggle.components-button { + display: inline-flex; + align-items: center; + cursor: pointer; + border: none; + outline: none; + padding: 0; + transition: color 0.2s ease; + @include reduce-motion("transition"); +} + .block-editor-inserter__menu { height: 100%; display: flex; diff --git a/packages/block-editor/src/components/media-placeholder/index.js b/packages/block-editor/src/components/media-placeholder/index.js index aa3225fb63602f..505464b7264b2e 100644 --- a/packages/block-editor/src/components/media-placeholder/index.js +++ b/packages/block-editor/src/components/media-placeholder/index.js @@ -278,7 +278,7 @@ export class MediaPlaceholder extends Component { className="block-editor-media-placeholder__button" onClick={ this.openURLInput } isPressed={ isURLInputVisible } - isSecondary + isTertiary > { __( 'Insert from URL' ) } @@ -319,7 +319,7 @@ export class MediaPlaceholder extends Component { render={ ( { open } ) => { return (