Skip to content

Commit f78d79b

Browse files
committed
Make input label
1 parent fcd7198 commit f78d79b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

frontend/app/components/redesign/components/builder/TitleInput.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,17 @@ function CustomTitle({
8080
helpText
8181
}: Omit<Props, 'suggestions'> & { placeholder: string }) {
8282
const ref = useRef<HTMLInputElement>(null)
83+
const id = 'custom-title-input'
8384
return (
84-
<fieldset className="flex flex-col gap-xs">
85-
<legend className="text-base leading-md font-bold text-text-primary mb-xs">
85+
<div className="flex flex-col gap-xs">
86+
<label
87+
htmlFor={id}
88+
className="text-base leading-md font-bold text-text-primary"
89+
>
8690
Custom title
87-
</legend>
91+
</label>
8892
<InputField
93+
id={id}
8994
value={value}
9095
onChange={(e) => onChange(e.target.value.trim())}
9196
ref={ref}
@@ -96,6 +101,6 @@ function CustomTitle({
96101
helpText={helpText}
97102
className="h-12 text-base leading-md"
98103
/>
99-
</fieldset>
104+
</div>
100105
)
101106
}

0 commit comments

Comments
 (0)