Skip to content

Commit e33dd4b

Browse files
committed
fix: add aria label to make radio group selectable in tests
1 parent 1f4d542 commit e33dd4b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/client/components/DynamicParameter.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ const ParameterLabel: FC<ParameterLabelProps> = ({
151151
<div className="flex items-start gap-2">
152152
<div className="flex w-full flex-col gap-1">
153153
<Label
154+
id={`${id}-label`}
154155
htmlFor={id}
155156
className="flex flex-wrap gap-2 font-medium text-content-primary text-sm"
156157
role="button"
@@ -498,6 +499,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
498499
disabled={disabled}
499500
value={`data-${value}`}
500501
className="relative"
502+
aria-labelledby={`${id}-label`}
501503
>
502504
{parameter.options.map((option) => (
503505
<div

0 commit comments

Comments
 (0)