diff --git a/.changeset/chilled-seahorses-clean.md b/.changeset/chilled-seahorses-clean.md new file mode 100644 index 0000000000..aa3ae4d062 --- /dev/null +++ b/.changeset/chilled-seahorses-clean.md @@ -0,0 +1,5 @@ +--- +'@backstage/core-components': patch +--- + +Fixed bug in Link where it was possible to select and copy a hidden element into clipboard diff --git a/packages/core-components/src/components/Link/Link.tsx b/packages/core-components/src/components/Link/Link.tsx index 4d58fdfa77..e957390da8 100644 --- a/packages/core-components/src/components/Link/Link.tsx +++ b/packages/core-components/src/components/Link/Link.tsx @@ -42,6 +42,7 @@ const useStyles = makeStyles( clipPath: 'inset(50%)', overflow: 'hidden', position: 'absolute', + userSelect: 'none', whiteSpace: 'nowrap', height: 1, width: 1,