diff --git a/examples/to-do-example/src/app/components/Cards.tsx b/examples/to-do-example/src/app/components/Cards.tsx
index abc9e0a41..6b913523e 100644
--- a/examples/to-do-example/src/app/components/Cards.tsx
+++ b/examples/to-do-example/src/app/components/Cards.tsx
@@ -66,7 +66,6 @@ export function AccordianTriggerContent({
{contentVariants.icon}
- {" "}
{active
? contentVariants.activeHeaderText
@@ -78,7 +77,7 @@ export function AccordianTriggerContent({
<>
- contentVariants.activeBodyReactContent
+ {contentVariants.activeBodyReactContent}
>
) : (
- contentVariants.inactiveBodyText
+
+ {contentVariants.inactiveBodyText}
+
)}
);
diff --git a/examples/to-do-example/src/app/components/ToDoRow.tsx b/examples/to-do-example/src/app/components/ToDoRow.tsx
index f0b37af41..aed1b2b1f 100644
--- a/examples/to-do-example/src/app/components/ToDoRow.tsx
+++ b/examples/to-do-example/src/app/components/ToDoRow.tsx
@@ -3,21 +3,24 @@ import { CheckCircleIcon, PlusIcon } from "@heroicons/react/24/solid";
import { Paragraph } from "./Paragraph";
const baseStyle =
- "flex h-16 w-full rounded-md pl-2 pr-4 transition hover:cursor-pointer";
+ "flex h-16 w-full rounded-md transition hover:cursor-pointer pl-12 font-sans focus:outline-none focus:bg-slate-600 focus:text-slate-200";
const ToDoRowVariants = {
add: {
- button: "bg-slate-800 border-slate-500 border-2 hover:border-slate-400 ",
+ button:
+ "bg-slate-800 border-slate-500 border-2 hover:border-slate-400 pr-4 ",
text: "text-slate-600 italic",
- icon: ,
+ icon: (
+
+ ),
},
active: {
- button: "bg-slate-800 text-slate-100",
- text: "text-slate-400",
+ button: "bg-slate-800",
+ text: "text-slate-200",
icon: ,
},
completed: {
- button: "bg-slate-900 text-slate-100",
+ button: "bg-slate-900",
text: "text-slate-600",
icon: ,
},
@@ -31,16 +34,30 @@ type ToDoRowProps = {
export function ToDoRow({ variant, className }: ToDoRowProps) {
const Icon = ToDoRowVariants[variant].icon;
return (
-
-
-
{Icon}
-
- What do you want to do?
-
+
+
);
}
diff --git a/examples/to-do-example/src/app/components/ui/accordion.tsx b/examples/to-do-example/src/app/components/ui/accordion.tsx
index 7984062f8..d95769c15 100644
--- a/examples/to-do-example/src/app/components/ui/accordion.tsx
+++ b/examples/to-do-example/src/app/components/ui/accordion.tsx
@@ -28,7 +28,7 @@ const AccordionTrigger = React.forwardRef<
svg]:rotate-180",
+ "flex flex-1 place-content-between w-full items-top font-medium transition-all [&[data-state=open]>svg]:rotate-180 text-slate-400",
className
)}
{...props}
diff --git a/examples/to-do-example/src/app/page.tsx b/examples/to-do-example/src/app/page.tsx
index a988bbaaf..26b805222 100644
--- a/examples/to-do-example/src/app/page.tsx
+++ b/examples/to-do-example/src/app/page.tsx
@@ -3,6 +3,7 @@ import { Header1, Header2 } from "./components/Header";
import { Paragraph } from "./components/Paragraph";
import { PrimaryGradientText } from "./components/TextStyling";
import { ToDoRow } from "./components/ToDoRow";
+// import { ToDoRow } from "./components/ToDoRow";
export default function Home() {
return (
@@ -29,18 +30,20 @@ export default function Home() {
trigger.dev/to-do-list-example
-
- View the{" "}
-
- source code
-
- .
-
+
View the{" "}