Commit Graph
10 Commits
Author SHA1 Message Date
thePR0M3TH3ANandClaude Opus 4.8 1921356558 ui/popover: let panel inputs receive keys; portal in-modal panels
The shared engine treats every panel as an ARIA menu and preventDefault'd
single-char + arrow keys, so typing in a panel with inputs (the zap
comment/amount fields) was swallowed — "you can't type in the popup".
handleMenuKeydown now ignores editable targets.

Also relocate a pre-existing in-host panel (the in-modal zap dialog) into
the body-level portal on open so position:fixed is viewport-relative
instead of anchoring to the modal edge, restoring it on close. Pure DOM
helpers extracted to popoverPanelDom.js to keep the engine under its cap.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-23 14:53:38 -04:00
google-labs-jules[bot] 4cd85b8096 Fix JSDOM reference error and assertion in popover tests
- Exposed `HTMLStyleElement` globally in `tests/ui/popoverEngine.test.mjs` to resolve a `ReferenceError` during `instanceof` checks.
- Updated assertion in "applies token-based sizing and arrow positioning" to check the `--popover-arrow-top` CSS variable instead of the `top` property, as JSDOM does not compute layout properties from variables.
- Verified all tests in the file pass.
2026-01-14 04:29:16 +00:00
thePR0M3TH3AN b48edbb055 Refactor inline styles to CSS rules 2026-01-13 21:13:32 -05:00
thePR0M3TH3AN 767c7fba4b Refine popover tests to avoid inline style access 2025-10-20 10:49:27 -04:00
thePR0M3TH3AN 40224ad0f8 test: add alignment checks for popover panels 2025-10-16 17:05:04 -04:00
thePR0M3TH3AN 2b65a85335 Improve popover focus scroll restoration 2025-10-16 16:35:06 -04:00
thePR0M3TH3AN 581e99daf3 Preserve scroll position during popover focus 2025-10-16 16:29:33 -04:00
thePR0M3TH3AN ef14485eae Ensure popover state matches overlay styling 2025-10-16 16:00:12 -04:00
thePR0M3TH3AN 7c1f2280a9 Enhance popover accessibility and keyboard support 2025-10-16 13:23:28 -04:00
thePR0M3TH3AN 71ef952777 Add popover engine backed by Floating UI 2025-10-16 10:46:01 -04:00