From 3b0bc1ca751157669f322698f054b327002d183c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Zieli=C5=84ski?= Date: Mon, 3 Aug 2026 13:15:23 +0200 Subject: [PATCH 1/2] [Website] Position WordPress notices above the floating Dock --- .../lib/playground-mu-plugin/0-playground.php | 103 ++++++++++++++++++ .../website/src/components/dock/dock.tsx | 2 + 2 files changed, 105 insertions(+) diff --git a/packages/playground/remote/src/lib/playground-mu-plugin/0-playground.php b/packages/playground/remote/src/lib/playground-mu-plugin/0-playground.php index 7969d5f9c16..47a422ea6b2 100644 --- a/packages/playground/remote/src/lib/playground-mu-plugin/0-playground.php +++ b/packages/playground/remote/src/lib/playground-mu-plugin/0-playground.php @@ -45,6 +45,109 @@ function ( $message ) { '; }); +/** + * Keeps editor snackbars above the floating Playground Dock. + * + * The Dock lives two iframe layers above WordPress. Playground's scoped + * requests share its origin, so wp-admin can read the Dock geometry without + * introducing a second host-side state channel. Embedded or isolated contexts + * that cannot reach the Dock keep WordPress's native notice positioning. + */ +add_action('admin_footer', function () { + ?> + + + )} + {/* The web MU-plugin uses this stable hook to keep WordPress notices clear. */}