Skip to content

Commit

Permalink
Button: restore "inactive" prop; typescript-ify (#111)
Browse files Browse the repository at this point in the history
It's used all over qz-react. It was removed in #24 without explanation. Seems like an oversight.
  • Loading branch information
adamhooper authored Aug 24, 2021
1 parent 4701a73 commit 52aea2b
Show file tree
Hide file tree
Showing 5 changed files with 188 additions and 144 deletions.
155 changes: 91 additions & 64 deletions dist/Button/Button.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/Button/Button.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/components/Button/Button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@
cursor: pointer;
position: relative;

&:disabled {
&:disabled,
&.inactive {
@include states.fade-on-hover;

opacity: 0.5;
}

&:disabled {
cursor: default;
}

Expand Down
Loading

0 comments on commit 52aea2b

Please sign in to comment.