mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
refactor: update LinkButton role type
Fix Subtype missing error on 'a' element.
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user