From 238e7b496d9fc6cb59900eadbec1f6e668004d99 Mon Sep 17 00:00:00 2001 From: James Koster Date: Tue, 21 May 2024 10:10:58 +0100 Subject: [PATCH] Make tooltips appear middle-left --- packages/editor/src/components/post-schedule/panel.js | 1 + packages/editor/src/components/post-template/block-theme.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/editor/src/components/post-schedule/panel.js b/packages/editor/src/components/post-schedule/panel.js index 56c05f4ca4899..5d63da5e30c91 100644 --- a/packages/editor/src/components/post-schedule/panel.js +++ b/packages/editor/src/components/post-schedule/panel.js @@ -72,6 +72,7 @@ export default function PostSchedulePanel() { size="compact" className="editor-post-schedule__dialog-toggle" variant="tertiary" + tooltipPosition="middle left" onClick={ onToggle } aria-label={ sprintf( // translators: %s: Current post date. diff --git a/packages/editor/src/components/post-template/block-theme.js b/packages/editor/src/components/post-template/block-theme.js index 9abacc0de3a7f..189b967e2cd1c 100644 --- a/packages/editor/src/components/post-template/block-theme.js +++ b/packages/editor/src/components/post-template/block-theme.js @@ -78,6 +78,7 @@ export default function BlockThemeControl( { id } ) { toggleProps={ { size: 'compact', variant: 'tertiary', + tooltipPosition: 'middle left', } } label={ __( 'Template options' ) } text={ decodeEntities( template.title ) }