diff --git a/src/components/Questionnaire/QuestionLabel.tsx b/src/components/Questionnaire/QuestionLabel.tsx index 17855845b0f..3614c6b1b06 100644 --- a/src/components/Questionnaire/QuestionLabel.tsx +++ b/src/components/Questionnaire/QuestionLabel.tsx @@ -5,22 +5,33 @@ import type { Question } from "@/types/questionnaire/question"; interface QuestionLabelProps { question: Question; className?: string; + groupLabel?: boolean; } +const defaultGroupClass = "text-lg font-medium text-gray-900"; +const defaultInputClass = "text-base font-medium block"; + export function QuestionLabel({ question, - className = "text-base font-medium block", + className, + groupLabel, }: QuestionLabelProps) { + const defaultClass = groupLabel ? defaultGroupClass : defaultInputClass; return ( -