-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure the main tree and parent
Dialog
components are marked as `in…
…ert` (#2290) * drop `@ts-expect-error`, because `inert` is available now * fix logical error We want to apply `inert` when we _don't_ have nested dialogs, because if we _do_ have nested dialogs, then the inert should be applied from the nested dialog (or visually the top most dialog). * update changelog * replace `useInertOthers` with `useInert` * add `assertInert` and `assertNotInert` accessibility assertion helpers * ensure the `main tree` root is marked as inert As well as the parent dialogs in case of nested dialogs.
- Loading branch information
1 parent
619d103
commit 10efaa9
Showing
14 changed files
with
560 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
295 changes: 0 additions & 295 deletions
295
packages/@headlessui-react/src/hooks/use-inert-others.test.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.