fix: Question -> Note for ty and welcome card labels (#2644)

Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
This commit is contained in:
Dhruwang Jariwala
2024-05-23 20:08:29 +05:30
committed by GitHub
parent 223937adcc
commit 16f5ce40d9

View File

@@ -382,7 +382,7 @@ export const QuestionFormInput = ({
<div className="w-full">
<div className="w-full">
<div className="mb-2 mt-3">
<Label htmlFor={id}>{getLabelById(id)}</Label>
<Label htmlFor={id}>{label || getLabelById(id)}</Label>
</div>
<div className="flex flex-col gap-4 bg-white">
@@ -435,7 +435,7 @@ export const QuestionFormInput = ({
placeholder={placeholder ? placeholder : getPlaceHolderById(id)}
id={id}
name={id}
aria-label={label ? label : getLabelById(id)}
aria-label={label || getLabelById(id)}
autoComplete={showQuestionSelect ? "off" : "on"}
value={recallToHeadline(text, localSurvey, false, selectedLanguageCode)[selectedLanguageCode]}
ref={inputRef}