From faf98e15fd2119ff2b738634b7d2300e85e8e218 Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Thu, 19 Mar 2026 19:48:41 +0000 Subject: [PATCH 1/2] refactor: remove Textarea component and related tests, update exports accordingly --- .github/copilot-instructions.md | 4 ++++ .../__snapshots__/exports.test.ts.snap | 1 - .../__tests__/primer-react.browser.test.tsx | 6 ------ .../styled-react/src/components/Textarea.tsx | 19 ------------------- packages/styled-react/src/index.tsx | 14 -------------- 5 files changed, 4 insertions(+), 40 deletions(-) delete mode 100644 packages/styled-react/src/components/Textarea.tsx diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 777bf12f115..8dbde3ef2b7 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -157,3 +157,7 @@ npm run lint:fix # Auto-fix linting issues - Storybook startup: ~3 seconds **CRITICAL**: NEVER CANCEL builds, tests, or long-running commands. They may take significantly longer in CI environments. Always set appropriate timeouts (90+ minutes for builds/tests). + +## Pull Request Creation + +When creating a pull request, you MUST use the template in `.github/pull_request_template.md` to structure the PR description. Read the template file, fill in all sections appropriately, and include it in the PR body. diff --git a/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap b/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap index 1c5e65a8483..1bbdb28a5b5 100644 --- a/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap @@ -27,7 +27,6 @@ exports[`@primer/styled-react exports 1`] = ` "Spinner", "sx", "Text", - "Textarea", "TextInput", "theme", "themeGet", diff --git a/packages/styled-react/src/__tests__/primer-react.browser.test.tsx b/packages/styled-react/src/__tests__/primer-react.browser.test.tsx index d0c93ae5c14..d60995044fd 100644 --- a/packages/styled-react/src/__tests__/primer-react.browser.test.tsx +++ b/packages/styled-react/src/__tests__/primer-react.browser.test.tsx @@ -25,7 +25,6 @@ import { Spinner, Text, TextInput, - Textarea, ThemeProvider, Timeline, Token, @@ -271,11 +270,6 @@ describe('@primer/react', () => { expect(window.getComputedStyle(screen.getByRole('button')).backgroundColor).toBe('rgb(255, 0, 0)') }) - test('Textarea supports `sx` prop', () => { - const {container} = render(