Skip to content

Commit 1c99fca

Browse files
author
cubic Bot
committed
Replace anchor without href with accessible link or button (merges into #2019)
1 parent 0915c70 commit 1c99fca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/patterns/default-app.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,14 @@ export default recipe<CharmsListInput, CharmsListOutput>(
184184
<td>{charm?.[NAME] || "Untitled Charm"}</td>
185185
<td>
186186
<a
187+
href="#"
187188
className="pattern-link"
188-
onClick={visit({ charm })}
189+
onClick={(e: any) => {
190+
e.preventDefault();
191+
visit({ charm })(e);
192+
}}
189193
>
190-
{getCharmName({ charm })}
194+
{charm?.[NAME] || "Untitled"}
191195
</a>
192196
</td>
193197
<td>

0 commit comments

Comments
 (0)