mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
fix(Button): button link not showing disabled classes (#2189)
This commit is contained in:
committed by
GitHub
parent
523493105e
commit
7c2adf2f7f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user