mirror of
https://github.com/wassname/talk.git
synced 2026-07-26 13:37:38 +08:00
[CORL-746] updated branding: buttons (#2748)
* new button component * update specs * fix up markers * fix docz so it renders * clean up buttons implementation * update snaps * clean up slack buttons * update snaps
This commit is contained in:
committed by
Kim Gardner
parent
ec93789cff
commit
3358cef433
@@ -7,7 +7,6 @@ import { PropTypesOf } from "coral-ui/types";
|
||||
|
||||
interface Props extends PropTypesOf<typeof Button> {
|
||||
text: string;
|
||||
size?: "small" | "medium" | "large";
|
||||
}
|
||||
|
||||
interface State {
|
||||
@@ -40,11 +39,11 @@ class CopyButton extends React.Component<Props> {
|
||||
};
|
||||
|
||||
public render() {
|
||||
const { text, size, ...rest } = this.props;
|
||||
const { text, color, size, ...rest } = this.props;
|
||||
const { copied } = this.state;
|
||||
return (
|
||||
<CopyToClipboard text={text} onCopy={this.handleCopy}>
|
||||
<Button variant="filled" size={size || "small"} {...rest}>
|
||||
<Button color={color || "mono"} variant="flat" {...rest}>
|
||||
{copied ? (
|
||||
<Localized id="framework-copyButton-copied">
|
||||
<span>Copied!</span>
|
||||
|
||||
Reference in New Issue
Block a user