Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f4d542

Browse files
committed
fix: change label to be accesible
1 parent f373011 commit 1f4d542

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/client/components/DynamicParameter.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,15 @@ const ParameterLabel: FC<ParameterLabelProps> = ({
153153
<Label
154154
htmlFor={id}
155155
className="flex flex-wrap gap-2 font-medium text-content-primary text-sm"
156+
role="button"
157+
onClick={onGoToDefinition}
156158
>
157-
<button className="flex hover:underline" onClick={onGoToDefinition}>
159+
<span className="flex hover:underline">
158160
{displayName}
159161
{parameter.required && (
160162
<span className="text-content-destructive">*</span>
161163
)}
162-
</button>
164+
</span>
163165
{!parameter.mutable && (
164166
<TooltipProvider delayDuration={100}>
165167
<Tooltip>

0 commit comments

Comments
 (0)