diff --git a/packages/edit-post/src/components/header/style.scss b/packages/edit-post/src/components/header/style.scss index 36d622bc9057e..7a876f1e618db 100644 --- a/packages/edit-post/src/components/header/style.scss +++ b/packages/edit-post/src/components/header/style.scss @@ -25,6 +25,10 @@ // Leave enough room for the focus ring to show. padding: 2px 0; align-items: center; + // Allow focus ring to be fully visible on furthest right button. + @include break-medium() { + padding-right: var(--wp-admin-border-width-focus); + } .table-of-contents { display: none; diff --git a/packages/edit-site/src/components/header-edit-mode/style.scss b/packages/edit-site/src/components/header-edit-mode/style.scss index 96b26368032ea..3414a2c95ea31 100644 --- a/packages/edit-site/src/components/header-edit-mode/style.scss +++ b/packages/edit-site/src/components/header-edit-mode/style.scss @@ -21,9 +21,9 @@ height: 100%; // Allow focus ring to be fully visible on furthest right button. @include break-medium() { + padding-right: var(--wp-admin-border-width-focus); // Account for the site hub, which is 60x60px. flex-basis: calc(37.5% - 60px); - padding-right: 2px; // We need this to be overflow hidden so the block toolbar can // overflow scroll. If the overflow is visible, flexbox allows // the toolbar to grow outside of the allowed container space.