Skip to content

Commit

Permalink
Merge pull request #229 from storybookjs/clipboard-defaults
Browse files Browse the repository at this point in the history
Add default tooltips for copied and uncopied states
  • Loading branch information
winkerVSbecks authored Nov 21, 2020
2 parents 937851a + bf35fab commit e3b4aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/clipboard/Clipboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const Clipboard = ({

Clipboard.defaultProps = {
copyOptions: undefined,
renderCopiedTooltip: () => {},
renderUncopiedTooltip: () => {},
renderCopiedTooltip: () => <TooltipNote note="Copied" />,
renderUncopiedTooltip: () => <TooltipNote note="Copy to clipboard" />,
resetTimeout: 3000,
toCopy: undefined,
getCopyContent: () => '',
Expand Down
1 change: 0 additions & 1 deletion src/components/clipboard/ClipboardInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { ClipboardIcon } from './ClipboardIcon';

const Container = styled.div`
position: relative;
margin-top: 15px;
`;

const StyledInput = styled(Input)`
Expand Down

0 comments on commit e3b4aa1

Please sign in to comment.