bca27898f7386f6d884a956fd1a55570dc439cf7
Nesting the tag <button> inside the row's <a href="…"> made the browser treat any click on the button as a click on the anchor, sending the user to the document detail page even though the tag handler called goto() with the tag-filter URL. e.stopPropagation() doesn't cancel the anchor's default navigation. Refactor to the stretched-link pattern: the row-wide anchor sits as an overlay (`absolute inset-0 z-0`) and the content wrapper sits above it (`relative z-10` + `pointer-events-none`). Tag buttons re-enable pointer events with `pointer-events-auto`, so they're true siblings of the anchor and receive their own clicks. Empty content areas pass through to the anchor for whole-row navigation. The vitest-browser client project doesn't load Tailwind CSS, so the z-index has no effect there and Playwright's coordinate-based click hits the anchor instead of the button. Trigger the click directly on the button DOM element in the unit test (with a comment explaining the test-env constraint); the actual user-facing behavior is verified via playwright against the running dev server. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Description
No description provided
Languages
Python
73.3%
TypeScript
11.4%
Java
10.8%
Svelte
4.2%
Shell
0.1%