diff --git a/packages/edit-post/src/components/header/header-toolbar/index.js b/packages/edit-post/src/components/header/header-toolbar/index.js index 7de48dc7abffa..080f9e2c25825 100644 --- a/packages/edit-post/src/components/header/header-toolbar/index.js +++ b/packages/edit-post/src/components/header/header-toolbar/index.js @@ -11,7 +11,11 @@ import { BlockNavigationDropdown, ToolSelector, } from '@wordpress/block-editor'; -import { EditorHistoryRedo, EditorHistoryUndo } from '@wordpress/editor'; +import { + TableOfContents, + EditorHistoryRedo, + EditorHistoryUndo, +} from '@wordpress/editor'; const inserterToggleProps = { isPrimary: true }; @@ -63,6 +67,7 @@ function HeaderToolbar() { + { displayBlockToolbar && (
diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index 73956e54b89cc..99bdd87a457b6 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -13,7 +13,6 @@ import { EditorNotices, PostPublishPanel, EditorKeyboardShortcutsRegister, - TableOfContents, } from '@wordpress/editor'; import { useSelect, useDispatch } from '@wordpress/data'; import { @@ -68,7 +67,6 @@ function Layout() { previousShortcut, nextShortcut, hasBlockSelected, - isTextModeEnabled, } = useSelect( ( select ) => { return { hasFixedToolbar: select( 'core/edit-post' ).isFeatureActive( @@ -96,8 +94,6 @@ function Layout() { nextShortcut: select( 'core/keyboard-shortcuts' ).getAllShortcutRawKeyCombinations( 'core/edit-post/next-region' ), - isTextModeEnabled: - select( 'core/edit-post' ).getEditorMode() === 'text', }; }, [] ); const sidebarIsOpened = @@ -173,12 +169,6 @@ function Layout() { mode === 'visual' && (
- -
) } diff --git a/packages/icons/src/library/info.js b/packages/icons/src/library/info.js index 7dc1ab2d2de89..7499b180738b3 100644 --- a/packages/icons/src/library/info.js +++ b/packages/icons/src/library/info.js @@ -4,8 +4,8 @@ import { SVG, Path } from '@wordpress/primitives'; const info = ( - - + + ); diff --git a/storybook/test/__snapshots__/index.js.snap b/storybook/test/__snapshots__/index.js.snap index 3fef293ad18f3..3e91191010c31 100644 --- a/storybook/test/__snapshots__/index.js.snap +++ b/storybook/test/__snapshots__/index.js.snap @@ -12047,12 +12047,12 @@ exports[`Storyshots Icons/Icon Library 1`] = ` focusable="false" height={24} role="img" - viewBox="-2 -2 24 24" + viewBox="0 0 24 24" width={24} xmlns="http://www.w3.org/2000/svg" >