diff --git a/src/core/client/stream/components/Comment/Comment.tsx b/src/core/client/stream/components/Comment/Comment.tsx index 6d4065126..9216e8b14 100644 --- a/src/core/client/stream/components/Comment/Comment.tsx +++ b/src/core/client/stream/components/Comment/Comment.tsx @@ -1,7 +1,7 @@ import { Localized } from "fluent-react/compat"; import React from "react"; import { StatelessComponent } from "react"; -import { Popover, Typography } from "talk-ui/components"; +import { Button, Popover, Typography } from "talk-ui/components"; import PermalinkPopover from "../PermalinkPopover"; import Timestamp from "./Timestamp"; import TopBar from "./TopBar"; @@ -28,11 +28,15 @@ const Comment: StatelessComponent = props => {
}> {({ toggleShow, ref }) => ( - + )}
diff --git a/src/core/client/stream/components/PermalinkPopover.css b/src/core/client/stream/components/PermalinkPopover.css index ffc0a1b6c..ee4ef4d5c 100644 --- a/src/core/client/stream/components/PermalinkPopover.css +++ b/src/core/client/stream/components/PermalinkPopover.css @@ -1,9 +1,3 @@ -.shareButton { - composes: button from "talk-ui/shared/typography.css"; - composes: buttonReset from "talk-ui/shared/buttonReset.css"; - padding: 10px 0; -} - .textField { margin-right: 5px; } diff --git a/src/core/client/ui/components/BaseButton/BaseButton.tsx b/src/core/client/ui/components/BaseButton/BaseButton.tsx index 1d97a9d0c..81819b184 100644 --- a/src/core/client/ui/components/BaseButton/BaseButton.tsx +++ b/src/core/client/ui/components/BaseButton/BaseButton.tsx @@ -19,6 +19,8 @@ interface InnerProps extends ButtonHTMLAttributes { /** This is passed by the `withKeyboardFocus` HOC */ keyboardFocus: boolean; + + innerRef?: React.RefObject | any; } /** @@ -31,6 +33,7 @@ const BaseButton: StatelessComponent = ({ classes, keyboardFocus, type: typeProp, + innerRef, ...rest }) => { let Element = "button"; @@ -53,7 +56,7 @@ const BaseButton: StatelessComponent = ({ [classes.keyboardFocus]: keyboardFocus, }); - return ; + return ; }; const enhanced = withStyles(styles)(withKeyboardFocus(BaseButton)); diff --git a/src/core/client/ui/components/Button/Button.tsx b/src/core/client/ui/components/Button/Button.tsx index dadb7a35d..ded844b87 100644 --- a/src/core/client/ui/components/Button/Button.tsx +++ b/src/core/client/ui/components/Button/Button.tsx @@ -28,6 +28,8 @@ interface InnerProps extends ButtonHTMLAttributes { /** If set renders a button with secondary colors */ secondary?: boolean; + + innerRef?: React.RefObject | any; } class Button extends React.Component { @@ -39,6 +41,7 @@ class Button extends React.Component { invert, primary, secondary, + innerRef, ...rest } = this.props; @@ -53,6 +56,7 @@ class Button extends React.Component { );