docs(docs): trial step 19 tool and the tapped tool's focus, pinned

This commit is contained in:
bchanot committed 2026-11-19 15:18:06 +01:00
1 parent b0344a4af6
commit 448a17eff7
3 files changed
+21 -6

No files matched your search

+2 -1
View File
@@ -614,12 +614,13 @@ function focusedUnderStrip(page: Page) {
return page.evaluate(() => {
const active = document.activeElement as HTMLElement
const strip = document.querySelector('[data-testid="edit-strip"]')!
const label = active.getAttribute('aria-label') ?? active.textContent ?? ''
const inPlace =
!!active.closest('[data-place="annotations.drawing"]') &&
!strip.contains(active)
return {
inPlace,
name: `${active.tagName} « ${(active.getAttribute('aria-label') ?? active.textContent ?? '').trim().slice(0, 30)} »`,
name: `${active.tagName} « ${label.trim().slice(0, 30)} »`,
top: active.getBoundingClientRect().top,
stripBottom: strip.getBoundingClientRect().bottom,
}