Skip to content

Commit

Permalink
refactor: update LinkButton role type
Browse files Browse the repository at this point in the history
Fix Subtype missing error on 'a' element.
  • Loading branch information
satnaing committed Apr 18, 2023
1 parent 0f76424 commit 4c1b9c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/LinkButton.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ const { href, className, ariaLabel, title, disabled = false } = Astro.props;
---

<a
type="button"
href={disabled ? "#" : href}
tabindex={disabled ? "-1" : "0"}
class={`group ${className}`}
class={`group inline-block ${className}`}
aria-label={ariaLabel}
title={title}
aria-disabled={disabled}
Expand Down

0 comments on commit 4c1b9c8

Please sign in to comment.