react-spectrum
a2130857 - v3 Popovers, Modals, and Interactions (#419)

Commit
6 years ago
v3 Popovers, Modals, and Interactions (#419) * Starting work on overlays * wip: press interaction * Use press interaction in buttons * Implement focus containment, focus restoring, and auto focus in FocusScope * Add focus ring to buttons * Move useMediaQuery into utils * Implement overlays * Restore focus to active focus scope when tabbing from outside browser * Focus overlay on mount if no child is already focused * Move modal styles into a separate component folder * Add aria-hidden to providers outside active modal * Clean up * Add focus ring to all buttons * Merge ModalTrigger and PopoverTrigger into DialogTrigger * TypeScript is dumb * Linter * useButton/usePress cleanup * Fix button tests * Positioning props * Remove storybook addon info * Add tests for usePress hook * Tests for useInteractOutside * port calculatePosition tests from v2 * useOverlay tests * useOverlayTrigger tests * Tests for useOverlayPosition * useModal tests * review comments * update dependencies * Always preventDefault on Tab key in FocusScope * Popover tests * Overlay tests * Tests for Modal * Tray tests * DialogTrigger tests * Fix dependencies * Fix placement bug and add more stories * Move some dialog specific behavior into useDialog hook * Test cleanup * linting * Add tests for FocusScope * disable no-autofocus lint rule * Move dialog specific modal stuff into dialog package
Author
Committer
Parents
Loading