Skip to content
Merged
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/three-boxes-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

fix(TextArea): only add class name to outermost element
3 changes: 1 addition & 2 deletions packages/react/src/Textarea/Textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import React from 'react'
import {TextInputBaseWrapper} from '../internal/components/TextInputWrapper'
import type {FormValidationStatus} from '../utils/types/FormValidationStatus'
import type {SxProp} from '../sx'
import {clsx} from 'clsx'
import classes from './TextArea.module.css'

export const DEFAULT_TEXTAREA_ROWS = 7
Expand Down Expand Up @@ -78,7 +77,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
disabled={disabled}
rows={rows}
cols={cols}
className={clsx(classes.TextArea, className)}
className={classes.TextArea}
{...rest}
/>
</TextInputBaseWrapper>
Expand Down
Loading