From 11526537ad579dcd4317bf8ced739defec6b066e Mon Sep 17 00:00:00 2001 From: Jonathan Fuchs Date: Wed, 3 Nov 2021 13:54:18 -0700 Subject: [PATCH] Link no longer accepts styled system props --- .changeset/fast-fireants-sell.md | 5 ++++ docs/content/Link.md | 25 ++++++------------- src/Link.tsx | 8 ++---- src/__tests__/Link.test.tsx | 10 ++++---- src/__tests__/Link.types.test.tsx | 11 ++++++++ .../__snapshots__/Link.test.tsx.snap | 3 +-- 6 files changed, 32 insertions(+), 30 deletions(-) create mode 100644 .changeset/fast-fireants-sell.md create mode 100644 src/__tests__/Link.types.test.tsx diff --git a/.changeset/fast-fireants-sell.md b/.changeset/fast-fireants-sell.md new file mode 100644 index 00000000000..59f0f25ad4b --- /dev/null +++ b/.changeset/fast-fireants-sell.md @@ -0,0 +1,5 @@ +--- +'@primer/components': major +--- + +Link no longer accepts styled-system props. Please use the `sx` prop to extend Primer component styling instead. See also https://primer.style/react/overriding-styles for information about `sx` and https://primer.style/react/system-props for context on the removal. diff --git a/docs/content/Link.md b/docs/content/Link.md index 4ec7fc339bb..043472a38c3 100644 --- a/docs/content/Link.md +++ b/docs/content/Link.md @@ -16,22 +16,13 @@ In special cases where you'd like a `