fix(button): only set disabled attribute if true #755 (#757)

* fix(button): only set disabled attribute if true #755

Fixes #755

* Improve docs (#756)

* docs: remove Theme from new components

* docs: add styling instructions

* docs: add styling instructions

* docs: update copy

* fix(button): only set disabled attribute if true #755

Fixes #755

* docs(button): use inline notification for note [ci skip]
This commit is contained in:
Eric Liu 2021-07-18 05:53:56 -07:00 committed by GitHub
commit 793ecd8dc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 3 deletions

View file

@ -95,7 +95,7 @@
$: buttonProps = {
type: href && !disabled ? undefined : type,
tabindex,
disabled,
disabled: disabled === true ? true : undefined,
href,
"aria-pressed": hasIconOnly && kind === "ghost" ? isSelected : undefined,
...$$restProps,