Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create hooks for Focus Trap and ESC listener and use in Modal, Popover and Tooltip #351

Merged
merged 17 commits into from
Jun 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packages/thumbprint-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

## Unreleased

### Added

- [Patch] Create new hook for registering an ESC listener.
- [Patch] Create new hook for trapping focus.
- [Patch] Create new utility component for conditionally using portals.

### Changed

- [Patch] Refactor ModalCurtain to be a function component and use hooks.
- [Patch] Refactor Tooltip to use the new hooks.
- [Patch] Refactor Popover to use the new hooks.

### Fixed

- [Patch] Add `muted` theme to tertiary `Button` loading state to match the button's text color. (#352)
Expand Down
Loading