Skip to content

Commit

Permalink
fix: textarea invalid icon (#16725)
Browse files Browse the repository at this point in the history
* fix: textarea invalid icon

* Update packages/react/src/components/TextArea/TextArea.tsx

Co-authored-by: Alison Joseph <[email protected]>

---------

Co-authored-by: Alison Joseph <[email protected]>
  • Loading branch information
riddhybansal and alisonjoseph authored Jun 13, 2024
1 parent 47b909e commit 8dd1cf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/TextArea/TextArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ const TextArea = React.forwardRef((props: TextAreaProps, forwardRef) => {
const formItemClasses = classNames(`${prefix}--form-item`, className);

const textAreaWrapperClasses = classNames(`${prefix}--text-area__wrapper`, {
[`${prefix}--text-area__wrapper--cols`]: other.cols,
[`${prefix}--text-area__wrapper--readonly`]: other.readOnly,
[`${prefix}--text-area__wrapper--warn`]: warn,
[`${prefix}--text-area__wrapper--slug`]: slug,
Expand Down
5 changes: 5 additions & 0 deletions packages/styles/scss/components/text-area/_text-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
position: relative;
display: flex;
inline-size: 100%;
max-inline-size: 100%;
}

.#{$prefix}--text-area__wrapper--cols {
inline-size: auto;
}

.#{$prefix}--text-area__invalid-icon {
Expand Down

0 comments on commit 8dd1cf5

Please sign in to comment.