-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #716 from thejackshelton/fix-popover
refactor: improved popover middle tests
- Loading branch information
Showing
6 changed files
with
150 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@qwik-ui/headless': patch | ||
--- | ||
|
||
fix: race condition in the popover when programmatically opening on supported browsers |
14 changes: 14 additions & 0 deletions
14
apps/website/src/routes/docs/headless/popover/examples/basic.tsx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { component$ } from '@builder.io/qwik'; | ||
import { Popover, PopoverTrigger } from '@qwik-ui/headless'; | ||
export default component$(() => { | ||
return ( | ||
<> | ||
<PopoverTrigger popovertarget="hero-id" class="popover-trigger"> | ||
Popover Trigger | ||
</PopoverTrigger> | ||
<Popover id="hero-id" class="popover"> | ||
My Hero! | ||
</Popover> | ||
</> | ||
); | ||
}); |
19 changes: 14 additions & 5 deletions
19
apps/website/src/routes/docs/headless/popover/examples/hero.tsx
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
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
Oops, something went wrong.