Skip to content

Commit d34bb8a

Browse files
committed
docs(targets): improve wording
1 parent 4272bb9 commit d34bb8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/_guide/targets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ To clarify the difference between `@target` and `@targets` here is a handy table
123123

124124
### Targets and "ShadowRoots"
125125

126-
Custom elements can create encapsulated DOM trees known as "Shadow" DOM. Catalyst targets support Shadow DOM by first traversing the `shadowRoot`, if present.
126+
Custom elements can create encapsulated DOM trees known as "Shadow" DOM. Catalyst targets support Shadow DOM by traversing the `shadowRoot` first, if present.
127127

128128
Important to note here is that nodes from the `shadowRoot` get returned _first_. So `@targets` will return an array of nodes, where shadowRoot nodes are at the start of the Array, and `@target` will return a ShadowRoot target if it exists, otherwise it will fall back to traversing the elements direct children.
129129

0 commit comments

Comments
 (0)