Skip to content

Commit

Permalink
More clarifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Copons committed Mar 15, 2021
1 parent b5e06bc commit 3b8ee4a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 3b8ee4a

Please sign in to comment.