From 9ea4204d037f0350ec401fae7e394ec7143e0637 Mon Sep 17 00:00:00 2001 From: James Koster Date: Tue, 21 May 2024 14:13:21 +0100 Subject: [PATCH] Inspector summary rows: Make tooltips appear middle-left (#61815) Co-authored-by: jameskoster Co-authored-by: youknowriad Co-authored-by: jasmussen --- 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 ) }