design-system icon indicating copy to clipboard operation
design-system copied to clipboard

Allow vertically resizing Textarea

Open spruce opened this issue 5 months ago • 4 comments

What does it do?

Changed the height attribute to min-height and allowed the textarea to be resized.

Why is it needed?

As described in https://github.com/strapi/design-system/issues/1916 it would be nice to resize Textareas for better editing. In a later PR it would be nice to add the ability to specify another min-height's for each textarea input

How to test it?

Create a new multiline text input in any entity and then go to the content view of that entity and see that the textarea is resizeable

Related issue(s)/PR(s)

Fixes #1916

spruce avatar Jun 14 '25 14:06 spruce

🦋 Changeset detected

Latest commit: 37bb24d47b7010969b257b2a798473e3aea20ced

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@strapi/design-system Patch
@strapi/icons Patch
@strapi/ui-primitives Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jun 14 '25 14:06 changeset-bot[bot]

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
design-system Ready Ready Preview Comment Sep 23, 2025 7:45am

vercel[bot] avatar Jun 14 '25 14:06 vercel[bot]

@simotae14 Could you check this PR?

spruce avatar Jun 19 '25 13:06 spruce

Hi @spruce, thank you so much for your contribution. Please do not tag anyone directly, it is better to let everyone in the team choose your PR and check your work. About this PR, give me some time to discuss it with my colleagues if we want to introduce this possibility in our DS.

I will let you know about our decision. Thank you.

simotae14 avatar Jun 19 '25 13:06 simotae14

Hey @spruce, thanks a lot for your contribution. I made a little adjustment to the PR after checking on the storybook. Feel free to give it a try. It was validated with the designers, moving forward and waiting for the review to merge it 🚀

Adzouz avatar Aug 28 '25 15:08 Adzouz

@Adzouz could we make it possible to disable resizing?

lucasboilly avatar Aug 28 '25 15:08 lucasboilly

@Adzouz could we make it possible to disable resizing?

Done ✅

Adzouz avatar Aug 28 '25 16:08 Adzouz

Nice. Works as I need it. Thank you very much. 👍

spruce avatar Aug 29 '25 08:08 spruce

Well done @spruce 👌

lucasboilly avatar Sep 01 '25 08:09 lucasboilly

Can one of you @jhoward1994 or @butcherZ can take a look at this one please? 🙏

Adzouz avatar Sep 02 '25 15:09 Adzouz