Skip to content

Commit

Permalink
style: Enhance button styling in CreateEncounterForm (#10919)
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-learner authored Mar 1, 2025
1 parent ce6c912 commit 957f5e5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/Encounter/CreateEncounterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import * as z from "zod";

import { cn } from "@/lib/utils";

import { Button } from "@/components/ui/button";
import {
Form,
Expand Down Expand Up @@ -226,10 +228,12 @@ export default function CreateEncounterForm({
key={value}
type="button"
data-cy={`encounter-type-${value}`}
className="h-24 w-full justify-start text-lg"
variant={
field.value === value ? "default" : "outline"
}
className={cn(
"h-24 w-full justify-start text-lg",
field.value === value &&
"ring-2 ring-primary text-primary",
)}
variant="outline"
onClick={() => field.onChange(value)}
>
<div className="flex flex-col items-center text-center">
Expand Down

0 comments on commit 957f5e5

Please sign in to comment.