From 0636d13b9a4bbc1013114e647d8e4c4f8e548fd4 Mon Sep 17 00:00:00 2001 From: Sainath Poojary <53347682+SainathPoojary@users.noreply.github.com> Date: Thu, 22 Oct 2026 03:47:30 +0530 Subject: [PATCH] Meta Boxes: Use the design system focus ring for the panel toggle (#85355) * Meta Boxes: Use the design system focus ring for the panel toggle * Meta Boxes: Add Changelog Entry --- Co-authored-by: SainathPoojary Co-authored-by: ciampo --- packages/edit-post/CHANGELOG.md | 4 ++++ packages/edit-post/src/components/layout/style.scss | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/edit-post/CHANGELOG.md b/packages/edit-post/CHANGELOG.md index cd01ecd7fd8f1f..25be7ea7c31871 100644 --- a/packages/edit-post/CHANGELOG.md +++ b/packages/edit-post/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- Meta Boxes: Use the design system outline for the panel toggle's keyboard focus ring ([#85355](https://github.com/WordPress/gutenberg/pull/85355)). + ## 9.0.0 (2026-10-20) ### Breaking Changes diff --git a/packages/edit-post/src/components/layout/style.scss b/packages/edit-post/src/components/layout/style.scss index 3e06b3173c546c..b1c79513c5dbbc 100644 --- a/packages/edit-post/src/components/layout/style.scss +++ b/packages/edit-post/src/components/layout/style.scss @@ -52,8 +52,10 @@ &:focus-visible::after { content: ""; position: absolute; - inset: var(--wp-admin-border-width-focus); - @include button-style__focus(); + inset: 0; + @include outset-ring__focus(); + // Keep the ring inside the panel, which clips overflowing content. + outline-offset: calc(-1 * var(--wpds-border-width-focus)); } > svg { fill: currentColor;