From 587ce0358195e27eb7e991713e6e0e90ec126969 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 20 Sep 2024 14:42:24 +0100 Subject: [PATCH] Fix double border --- packages/block-editor/src/components/block-toolbar/style.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/block-toolbar/style.scss b/packages/block-editor/src/components/block-toolbar/style.scss index 06ff457f057dc8..2a0f68a6976686 100644 --- a/packages/block-editor/src/components/block-toolbar/style.scss +++ b/packages/block-editor/src/components/block-toolbar/style.scss @@ -55,7 +55,9 @@ > :last-child .components-toolbar, // If the last toolbar group is empty, // we need to remove the double border from the penultimate one. - &:has(> :last-child:empty) > :nth-last-child(2) { + &:has(> :last-child:empty) > :nth-last-child(2), + &:has(> :last-child:empty) > :nth-last-child(2) .components-toolbar-group, + &:has(> :last-child:empty) > :nth-last-child(2) .components-toolbar { border-right: none; }