From 4c0f337cd1e31a09a8561bc1f0ebd1570675edfc Mon Sep 17 00:00:00 2001 From: Robbert Broersma Date: Mon, 7 Oct 2024 14:58:54 +0200 Subject: [PATCH] feat: add inputRequired property to React Textarea --- .changeset/rotten-crews-brake.md | 5 +++ .../src/Textarea.test.tsx | 35 +++++++++++++++++-- .../component-library-react/src/Textarea.tsx | 8 +++-- 3 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 .changeset/rotten-crews-brake.md diff --git a/.changeset/rotten-crews-brake.md b/.changeset/rotten-crews-brake.md new file mode 100644 index 00000000000..7484562d745 --- /dev/null +++ b/.changeset/rotten-crews-brake.md @@ -0,0 +1,5 @@ +--- +"@utrecht/component-library-react": minor +--- + +Add `inputRequired` property to React `Textarea`. diff --git a/packages/component-library-react/src/Textarea.test.tsx b/packages/component-library-react/src/Textarea.test.tsx index 2669929df3b..3eeb280e1ab 100644 --- a/packages/component-library-react/src/Textarea.test.tsx +++ b/packages/component-library-react/src/Textarea.test.tsx @@ -133,7 +133,7 @@ describe('Textarea', () => { it('can have a invalid state in CSS', () => { const handleChange = () => {}; - const { container } = render(