Skip to content

Commit 2f4c42d

Browse files
tests: add modal tests / fix modal testing issues
1 parent 6d595bd commit 2f4c42d

File tree

11 files changed

+241
-274
lines changed

11 files changed

+241
-274
lines changed

apps/website/src/routes/docs/headless/modal/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ To add an transition, use the `modal-showing` and `modal-closing` css classes. A
186186

187187
### Adding an animation
188188

189-
<Showcase name="animation" />
189+
<Showcase name="animatable" />
190190

191191
To add an animation, it's the same as with transitions, using the `modal-showing` and `modal-closing` css classes. Below is a snippet of the animation example above.
192192

apps/website/src/routes/layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { MDXProvider } from '~/_state/MDXProvider';
1111
import { components } from '~/components/mdx-components';
1212
import { DashboardTableOfContents } from '~/components/toc/toc';
1313
import { ScrollArea } from '@qwik-ui/styled';
14+
import Header from '~/components/header/header';
1415

1516
export default component$(() => {
1617
const { headings } = useContent();
@@ -19,7 +20,7 @@ export default component$(() => {
1920

2021
return (
2122
<>
22-
{/* <Header showBottomBorder={true} showVersion={true} /> */}
23+
<Header showBottomBorder={true} showVersion={true} />
2324
<div class="flex justify-center">
2425
<div class="flex w-full max-w-screen-2xl justify-center lg:justify-around xl:justify-between 2xl:space-x-16">
2526
<DocsNavigation

packages/kit-headless/src/components/modal/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ export * from './modal';
22
export * from './modal-content';
33
export * from './modal-footer';
44
export * from './modal-header';
5-
export * from './types';

packages/kit-headless/src/components/modal/modal-behavior.ts

Lines changed: 0 additions & 126 deletions
This file was deleted.

packages/kit-headless/src/components/modal/modal-title.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/kit-headless/src/components/modal/modal.stories.tsx

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)