Update src/internal/tabbable.ts

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
This commit is contained in:
Konnor Rogers
2023-08-23 11:19:27 -04:00
committed by GitHub
parent c8f9482b9c
commit 764d22e7d8

View File

@@ -88,7 +88,7 @@ export function getTabbableElements(root: HTMLElement | ShadowRoot) {
}
/**
* This looks funky. Basically a slots children will always be picked up *if* they're within the `root` element.
* This looks funky. Basically a slot's children will always be picked up *if* they're within the `root` element.
* However, there is an edge case when, if the `root` is wrapped by another shadow DOM, it won't grab the children.
* This fixes that fun edge case.
*/