refactor: update LinkButton role type

Fix Subtype missing error on 'a' element.
This commit is contained in:
satnaing
2023-04-18 23:24:39 +06:30
parent 0f764242fe
commit 4c1b9c89f3
+1 -2
View File
@@ -11,10 +11,9 @@ const { href, className, ariaLabel, title, disabled = false } = Astro.props;
--- ---
<a <a
type="button"
href={disabled ? "#" : href} href={disabled ? "#" : href}
tabindex={disabled ? "-1" : "0"} tabindex={disabled ? "-1" : "0"}
class={`group ${className}`} class={`group inline-block ${className}`}
aria-label={ariaLabel} aria-label={ariaLabel}
title={title} title={title}
aria-disabled={disabled} aria-disabled={disabled}