From 1820587d3420f86b705b9a3aee703ac93ade8df5 Mon Sep 17 00:00:00 2001 From: Jonathan Fuchs Date: Tue, 16 Nov 2021 15:00:31 -0800 Subject: [PATCH] UnderlineNav no longer accepts styled system props (#1579) --- .changeset/lucky-hounds-lie.md | 5 ++++ docs/content/UnderlineNav.md | 34 +++++++++-------------- src/UnderlineNav.tsx | 9 ++---- src/__tests__/UnderlineNav.types.test.tsx | 22 +++++++++++++++ 4 files changed, 43 insertions(+), 27 deletions(-) create mode 100644 .changeset/lucky-hounds-lie.md create mode 100644 src/__tests__/UnderlineNav.types.test.tsx diff --git a/.changeset/lucky-hounds-lie.md b/.changeset/lucky-hounds-lie.md new file mode 100644 index 00000000000..5089a619b25 --- /dev/null +++ b/.changeset/lucky-hounds-lie.md @@ -0,0 +1,5 @@ +--- +'@primer/components': major +--- + +UnderlineNav 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/UnderlineNav.md b/docs/content/UnderlineNav.md index 4dae70d8943..837a50e3cb7 100644 --- a/docs/content/UnderlineNav.md +++ b/docs/content/UnderlineNav.md @@ -23,31 +23,23 @@ This ensures that the NavLink gets `activeClassName='selected'` ``` -## System props - - - -System props are deprecated in all components except [Box](/Box). Please use the [`sx` prop](/overriding-styles) instead. - - - -UnderlineNav and UnderlineNav.Link components get `COMMON` system props. Read our [System Props](/system-props) doc page for a full list of available props. - ## Component props ### UnderlineNav -| Prop name | Type | Description | -| :--------- | :------ | :------------------------------------------------------------------------------------- | -| actions | Node | Place another element, such as a button, to the opposite side of the navigation items. | -| align | String | Use `right` to have navigation items aligned right. | -| full | Boolean | Used to make navigation fill the width of the container. | -| aria-label | String | Used to set the `aria-label` on the top level `