From 3b8ee4ac78e85f209952391ee5f627887eba9b79 Mon Sep 17 00:00:00 2001 From: Copons Date: Fri, 12 Mar 2021 17:51:47 +0000 Subject: [PATCH] More clarifications --- packages/block-editor/src/components/block-navigation/branch.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-editor/src/components/block-navigation/branch.js b/packages/block-editor/src/components/block-navigation/branch.js index 8f2e774c6b593..17fcf1ad64a23 100644 --- a/packages/block-editor/src/components/block-navigation/branch.js +++ b/packages/block-editor/src/components/block-navigation/branch.js @@ -62,6 +62,7 @@ export default function BlockNavigationBranch( props ) { isBranchSelected || ( isSelected && hasNestedBranch ); // Logic needed to target the last item of a selected branch which might be deeply nested. + // This is currently only needed for styling purposes. See: `.is-last-of-selected-branch`. const isLastBlock = index === blockCount - 1; const isLast = isSelected || ( isLastOfBranch && isLastBlock ); const isLastOfSelectedBranch =