Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/gentle-masks-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/styled-react": patch
---

Remove Textarea from `@primer/styled-react`
4 changes: 4 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ exports[`@primer/styled-react exports 1`] = `
"Spinner",
"sx",
"Text",
"Textarea",
"TextInput",
"theme",
"themeGet",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
Spinner,
Text,
TextInput,
Textarea,
ThemeProvider,
Timeline,
Token,
Expand Down Expand Up @@ -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(<Textarea sx={{background: 'red'}} />)
expect(window.getComputedStyle(container.firstElementChild!).backgroundColor).toBe('rgb(255, 0, 0)')
})

test('Timeline supports `sx` prop', () => {
render(<Timeline data-testid="component" sx={{background: 'red'}} />)
expect(window.getComputedStyle(screen.getByTestId('component')).backgroundColor).toBe('rgb(255, 0, 0)')
Expand Down
19 changes: 0 additions & 19 deletions packages/styled-react/src/components/Textarea.tsx

This file was deleted.

14 changes: 0 additions & 14 deletions packages/styled-react/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -405,20 +405,6 @@ export {
type TextProps,
} from './components/Text'

export {
/**
* @deprecated Usage of the `sx` prop with this component is no longer
* supported. Use the component from `@primer/react` with CSS Modules instead.
*/
Textarea,

/**
* @deprecated Usage of the `sx` prop with this component is no longer
* supported. Use the component from `@primer/react` with CSS Modules instead.
*/
type TextareaProps,
} from './components/Textarea'

export {
/**
* @deprecated Usage of the `sx` prop with this component is no longer
Expand Down
Loading