-
Notifications
You must be signed in to change notification settings - Fork 7
Ditch remaining uses of @query #553
Conversation
74812e9
to
d27334a
Compare
🦋 Changeset detectedLatest commit: 1d55b9a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
slotElements!: GlideCoreTreeItem[]; | ||
|
||
@queryAssignedElements({ slot: 'suffix' }) | ||
suffixSlotAssignedElements!: HTMLElement[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused.
And, [unlike](https://github.com/lit/lit/issues/4020#issuecomment-1743735312) the decorators, refs can be made private. | ||
So we can be sure they're only used internally. | ||
|
||
```ts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rather than give examples, I thought we could defer to Lit's documentation—which is linked above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ynotdraw: Can we lint against @query
decorators?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You bet! I'll add it to my list. Should be quick, I'll try and knock it out tomorrow.
c972c39
to
02629be
Compare
`); | ||
|
||
const childItems = component.querySelectorAll<TreeItem>( | ||
':scope > glide-core-tree-item', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
02629be
to
7559530
Compare
7559530
to
5369908
Compare
src/tree.item.ts
Outdated
); | ||
} | ||
|
||
// Checks if focus has moved to an element within this tree item itself, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unintentional comment shift?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aye. Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Description
Added to
CONTRIBUTING.md
:📋 Checklist
🔬 How to Test
The tests should have us covered. But a poke around Storybook wouldn't hurt.
📸 Images/Videos of Functionality
N/A