Skip to content

Commit 4c1b9c8

Browse files
committed
refactor: update LinkButton role type
Fix Subtype missing error on 'a' element.
1 parent 0f76424 commit 4c1b9c8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/LinkButton.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ const { href, className, ariaLabel, title, disabled = false } = Astro.props;
1111
---
1212

1313
<a
14-
type="button"
1514
href={disabled ? "#" : href}
1615
tabindex={disabled ? "-1" : "0"}
17-
class={`group ${className}`}
16+
class={`group inline-block ${className}`}
1817
aria-label={ariaLabel}
1918
title={title}
2019
aria-disabled={disabled}

0 commit comments

Comments
 (0)