Skip to content

Commit

Permalink
fix: Link copied to clipboard takes dark mode styles (outline#2218)
Browse files Browse the repository at this point in the history
Upgrade copy-to-clipboard
closes outline#2207
  • Loading branch information
tommoor authored Jun 12, 2021
1 parent a8e2e34 commit 756ec92
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/components/CopyToClipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class CopyToClipboard extends React.PureComponent<Props> {
const elem = React.Children.only(children);
copy(text, {
debug: process.env.NODE_ENV !== "production",
format: "text/plain",
});

if (onCopy) onCopy();
Expand Down
4 changes: 3 additions & 1 deletion flow-typed/npm/copy-to-clipboard_v3.x.x.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// flow-typed signature: 350413ab85bd03f3d1450c0ae307d106
// flow-typed version: c6154227d1/copy-to-clipboard_v3.x.x/flow_>=v0.104.x

declare module 'copy-to-clipboard' {
// @flow
declare module "copy-to-clipboard" {
declare export type Options = {|
debug?: boolean,
message?: string,
format?: "text/plain" | "text/html",
|};

declare module.exports: (text: string, options?: Options) => boolean;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"cancan": "3.1.0",
"chalk": "^4.1.0",
"compressorjs": "^1.0.7",
"copy-to-clipboard": "^3.0.6",
"copy-to-clipboard": "^3.3.1",
"core-js": "^3.10.2",
"date-fns": "2.22.1",
"dd-trace": "^0.32.2",
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4138,7 +4138,7 @@ copy-descriptor@^0.1.0:
resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d"
integrity sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=

copy-to-clipboard@^3.0.6, copy-to-clipboard@^3.0.8:
copy-to-clipboard@^3.0.8, copy-to-clipboard@^3.3.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/copy-to-clipboard/-/copy-to-clipboard-3.3.1.tgz#115aa1a9998ffab6196f93076ad6da3b913662ae"
integrity sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==
Expand Down

0 comments on commit 756ec92

Please sign in to comment.