fix(Button): button link not showing disabled classes (#2189)

This commit is contained in:
Bernardo Oliveira
2024-09-12 11:25:24 +01:00
committed by GitHub
parent 523493105e
commit 7c2adf2f7f
13 changed files with 587 additions and 574 deletions

View File

@@ -43,7 +43,8 @@ function onClick(e: MouseEvent) {
'as': 'a',
'href': disabled ? undefined : href,
'aria-disabled': disabled ? 'true' : undefined,
'role': disabled ? 'link' : undefined
'role': disabled ? 'link' : undefined,
'tabindex': disabled ? -1 : undefined
} : as === 'button' ? {
as,
type,