Repository navigation
[Feature Request]: Navigate up DOM parent hierarchy with '\' during preview element annotation #18626
nathnael-desta
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
In Figma, when an element or node is selected, pressing
\moves the selection up one level in the parent chain hierarchy. Bringing this shortcut to T3 Code's browser preview annotation tool would make selecting parent components and layout wrappers vastly easier and faster.The Problem
When using the T3 preview element inspector / annotation tool, clicking on UI elements frequently targets innermost leaf elements (such as
<path>,<span>, or inline text elements) rather than the logical parent component (e.g.<button>,<Card>,<nav>, or<section>) that the user intended to annotate. It can be tricky or tedious to click the exact border or padding of a container to select the parent rather than its children.Proposed Solution
Adopt Figma-style parent traversal in the preview annotation mode:
\(and/orShift + Enter) moves selection up to the immediate parent element (node.parentElement).body > div#app > main > section.card) allowing one-click selection of any ancestor.Benefits
All reactions