Skip to content

Commit

Permalink
fix: modal route not working + naming
Browse files Browse the repository at this point in the history
  • Loading branch information
maiieul committed Oct 2, 2024
1 parent 52eadb2 commit 84b74db
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/website/src/components/animations/caveats.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { component$ } from '@builder.io/qwik';
import { Note, NoteStatus } from '../note/note'; // Adjust the import path based on your structure

export const ImportantAnimationCaveats = component$(() => {
export const TopLayerAnimationsCaveats = component$(() => {
return (
<Note status={NoteStatus.Warning}>
<strong>Important Caveats for Animating Discrete Properties</strong>
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/components/animations/compatability.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { component$ } from '@builder.io/qwik';
import { Note, NoteStatus } from '../note/note'; // Adjust the import path based on your structure
import { Badge } from '~/components/ui';

export const BrowserAnimationCompatability = component$(() => {
export const BrowserAnimationsCompatability = component$(() => {
return (
<Note status={NoteStatus.Info}>
<div class="flex flex-col gap-2">
Expand Down
8 changes: 4 additions & 4 deletions apps/website/src/components/mdx-components/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { KeyboardInteractionTable } from '../keyboard-interaction-table/keyboard
import { Note } from '../note/note';
import { Showcase } from '../showcase/showcase';
import { StatusBanner } from '../status-banner/status-banner';
import { ImportantAnimationCaveats } from '../animations/caveats';
import { BrowserAnimationCompatability } from '../animations/compatability';
import { TopLayerAnimationsCaveats } from '../animations/caveats';
import { BrowserAnimationsCompatability } from '../animations/compatability';

export const components: Record<string, Component> = {
p: component$<PropsOf<'p'>>(({ ...props }) => {
Expand Down Expand Up @@ -136,6 +136,6 @@ export const components: Record<string, Component> = {
StatusBanner,
Showcase,
AutoAPI,
ImportantAnimationCaveats,
BrowserAnimationCompatability,
TopLayerAnimationsCaveats,
BrowserAnimationsCompatability,
};
5 changes: 2 additions & 3 deletions apps/website/src/routes/docs/headless/modal/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ title: Qwik UI | Modal
---

import topLayer from '../../../../../public/images/top-layer.webp';

import { statusByComponent } from '~/_state/component-statuses';
import { FeatureList } from '~/components/feature-list/feature-list';

<StatusBanner status={statusByComponent.headless.Modal} />
import {FeatureList} from '~/components/feature-list/feature-list';

# Modal

Expand Down Expand Up @@ -186,7 +185,7 @@ Transitions are useful for animating properties like opacity and transform. Here

<Showcase name="transition" />

<ImportantCaveats />
<TopLayerAnimationsCaveats />

### Backdrop animations

Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/routes/docs/headless/tooltip/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ If Tailwind is the framework of choice, then styles can be added using the [arbi

Tooltips rely on animations and transitions to provide smooth entry and exit effects. Like the Popover, tooltips benefit from modern CSS capabilities that allow animating between display: none and display: block. This ensures the tooltip remains visible for the entire duration of the animation.

<BrowserAnimationCompatability />
<BrowserAnimationsCompatability />

### Keyframe Animation Example

Expand Down

0 comments on commit 84b74db

Please sign in to comment.