From c28bab0a42ba1b0d763aa1f59e6c8dad26550136 Mon Sep 17 00:00:00 2001 From: Christian Gastrell Date: Fri, 8 May 2026 19:17:06 -0300 Subject: [PATCH] AI page: fix layout-mixin selector after slug rename PR #48471 adopted the jetpack-admin-page-layout mixin, scoped to body.jetpack_page_ai. Later that day, PR #48483 renamed the menu slug from 'ai' to 'jetpack-ai' to avoid a conflict with WordPress core's AI plugin; the SCSS selector wasn't updated, so the body class on trunk is jetpack_page_jetpack-ai and the mixin no longer matches. Update the selector to body.jetpack_page_jetpack-ai. Co-Authored-By: Claude Opus 4.7 (1M context) --- projects/plugins/jetpack/_inc/client/ai/style.scss | 2 +- .../plugins/jetpack/changelog/fix-ai-page-layout-selector | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 projects/plugins/jetpack/changelog/fix-ai-page-layout-selector diff --git a/projects/plugins/jetpack/_inc/client/ai/style.scss b/projects/plugins/jetpack/_inc/client/ai/style.scss index 7736c579eeae..b3a7a0907ea6 100644 --- a/projects/plugins/jetpack/_inc/client/ai/style.scss +++ b/projects/plugins/jetpack/_inc/client/ai/style.scss @@ -1,6 +1,6 @@ @use "@automattic/jetpack-base-styles/admin-page-layout" as *; -body.jetpack_page_ai { +body.jetpack_page_jetpack-ai { @include jetpack-admin-page-layout; } diff --git a/projects/plugins/jetpack/changelog/fix-ai-page-layout-selector b/projects/plugins/jetpack/changelog/fix-ai-page-layout-selector new file mode 100644 index 000000000000..8dd7de50a29c --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-ai-page-layout-selector @@ -0,0 +1,4 @@ +Significance: patch +Type: bugfix + +AI page: update the layout-mixin selector to match the renamed `jetpack-ai` body class so the page layout (sticky header, scrollable middle, pinned footer) applies again.