diff --git a/src/core/client/stream/components/PostCommentForm.tsx b/src/core/client/stream/components/PostCommentForm.tsx index 09db70e39..a05afb73a 100644 --- a/src/core/client/stream/components/PostCommentForm.tsx +++ b/src/core/client/stream/components/PostCommentForm.tsx @@ -41,7 +41,7 @@ const PostCommentForm: StatelessComponent = props => (
- diff --git a/src/core/client/stream/components/ReplyList.tsx b/src/core/client/stream/components/ReplyList.tsx index 17ad32ed2..6f4380769 100644 --- a/src/core/client/stream/components/ReplyList.tsx +++ b/src/core/client/stream/components/ReplyList.tsx @@ -34,8 +34,7 @@ const ReplyList: StatelessComponent = props => { aria-controls={`talk-comments-replyList-log--${props.commentID}`} onClick={props.onShowAll} disabled={props.disableShowAll} - secondary - invert + variant="outlined" fullWidth > Show All Replies diff --git a/src/core/client/stream/components/Stream.tsx b/src/core/client/stream/components/Stream.tsx index da55050f5..9dbb21c5b 100644 --- a/src/core/client/stream/components/Stream.tsx +++ b/src/core/client/stream/components/Stream.tsx @@ -42,8 +42,7 @@ const Stream: StatelessComponent = props => { + + + + + - - - - - - - - - - - - - - - -## Button with Icon - - - - + +## Filled Button + + + + + + + + + + + + + +## Outlined Button + + + + + + + + + + + + + + +## Ghost Button + + + + + + + + + + + + + diff --git a/src/core/client/ui/components/Button/Button.spec.tsx b/src/core/client/ui/components/Button/Button.spec.tsx new file mode 100644 index 000000000..da00c72e2 --- /dev/null +++ b/src/core/client/ui/components/Button/Button.spec.tsx @@ -0,0 +1,49 @@ +import React from "react"; +import ShallowRenderer from "react-test-renderer/shallow"; + +import { PropTypesOf } from "talk-framework/types"; + +import { Button } from "./Button"; + +it("renders correctly", () => { + const props: PropTypesOf = { + classes: { + mouseHover: "mouseHover", + keyboardFocus: "keyboardFocus", + } as any, + children: "Push me", + }; + const renderer = ShallowRenderer.createRenderer(); + renderer.render(