From 7312d6fc7827c38b38bf0bde89ee90cde47eddff Mon Sep 17 00:00:00 2001 From: Liu Liu Date: Fri, 29 Aug 2025 13:52:42 -0700 Subject: [PATCH 01/12] remove sx props --- e2e/components/TextInput.test.ts | 36 ------------------ packages/react/src/SubNav/SubNav.docs.json | 20 +--------- packages/react/src/Text/Text.docs.json | 7 +--- packages/react/src/Text/Text.stories.tsx | 6 --- packages/react/src/Text/Text.tsx | 37 ++++++++----------- .../src/TextInput/TextInput.dev.stories.tsx | 24 ++---------- packages/react/src/TextInput/TextInput.tsx | 3 -- .../TextInputWithTokens.tsx | 2 - .../react/src/Textarea/Textarea.docs.json | 7 +--- .../react/src/Textarea/Textarea.stories.tsx | 5 --- packages/react/src/Textarea/Textarea.tsx | 6 +-- 11 files changed, 24 insertions(+), 129 deletions(-) diff --git a/e2e/components/TextInput.test.ts b/e2e/components/TextInput.test.ts index fceb98ca879..114854866b2 100644 --- a/e2e/components/TextInput.test.ts +++ b/e2e/components/TextInput.test.ts @@ -219,24 +219,6 @@ test.describe('TextInput', () => { } }) - test.describe('Dev: With Sx', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-textinput-dev--with-sx', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`TextInput.Dev.WithSx.${theme}.png`) - }) - }) - } - }) - test.describe('Dev: With CSS', () => { for (const theme of themes) { test.describe(theme, () => { @@ -254,22 +236,4 @@ test.describe('TextInput', () => { }) } }) - - test.describe('Dev: With Sx and CSS', () => { - for (const theme of themes) { - test.describe(theme, () => { - test('default @vrt', async ({page}) => { - await visit(page, { - id: 'components-textinput-dev--with-sx-and-css', - globals: { - colorScheme: theme, - }, - }) - - // Default state - expect(await page.screenshot()).toMatchSnapshot(`TextInput.Dev.WithSxAndCSS.${theme}.png`) - }) - }) - } - }) }) diff --git a/packages/react/src/SubNav/SubNav.docs.json b/packages/react/src/SubNav/SubNav.docs.json index 5d918996de1..e43e54928f4 100644 --- a/packages/react/src/SubNav/SubNav.docs.json +++ b/packages/react/src/SubNav/SubNav.docs.json @@ -38,11 +38,6 @@ "name": "aria-label", "type": "string", "description": "Used to set the `aria-label` on the top level `