File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -151,15 +151,18 @@ const ParameterLabel: FC<ParameterLabelProps> = ({
151
151
< div className = "flex items-start gap-2" >
152
152
< div className = "flex w-full flex-col gap-1" >
153
153
< Label
154
+ id = { `${ id } -label` }
154
155
htmlFor = { id }
155
156
className = "flex flex-wrap gap-2 font-medium text-content-primary text-sm"
157
+ role = "button"
158
+ onClick = { onGoToDefinition }
156
159
>
157
- < button className = "flex hover:underline" onClick = { onGoToDefinition } >
160
+ < span className = "flex hover:underline" onClick = { onGoToDefinition } >
158
161
{ displayName }
159
162
{ parameter . required && (
160
163
< span className = "text-content-destructive" > *</ span >
161
164
) }
162
- </ button >
165
+ </ span >
163
166
{ ! parameter . mutable && (
164
167
< TooltipProvider delayDuration = { 100 } >
165
168
< Tooltip >
@@ -496,6 +499,7 @@ const ParameterField: FC<ParameterFieldProps> = ({
496
499
disabled = { disabled }
497
500
value = { `data-${ value } ` }
498
501
className = "relative"
502
+ aria-labelledby = { `${ id } -label` }
499
503
>
500
504
{ parameter . options . map ( ( option ) => (
501
505
< div
You can’t perform that action at this time.
0 commit comments