Skip to content

fix: restrict textarea resize to vertical and enable auto-grow#5784

Open
Aswath-Senthilkumar wants to merge 2 commits intocanonical:mainfrom
Aswath-Senthilkumar:fix-textarea-resize-field-sizing
Open

fix: restrict textarea resize to vertical and enable auto-grow#5784
Aswath-Senthilkumar wants to merge 2 commits intocanonical:mainfrom
Aswath-Senthilkumar:fix-textarea-resize-field-sizing

Conversation

@Aswath-Senthilkumar
Copy link
Copy Markdown

@Aswath-Senthilkumar Aswath-Senthilkumar commented Mar 27, 2026

Done

  • Restricted textarea resize to vertical only (resize: vertical)
  • Enabled auto-grow in height as the user types (field-sizing: content)
  • Added configurable $textarea-min-height (defaults to 3 lines) and $textarea-max-height (defaults to none) variables in _settings_spacing.scss with !default flag for user override
  • Updated docs heading with {{ status('updated') }} label
  • Added entry to releases.yml
  • field-sizing: content has ~80% global browser support as of March 2026 ([caniuse]). Unsupported browsers fall back gracefully, the textarea remains functional with fixed sizing and vertical-only resize still applies.

QA

  • Verify textarea only resizes vertically, the horizontal drag handle should be gone
  • Verify textarea grows in height automatically as text is typed
  • Verify textarea starts at a 3-row minimum height
  • Tested locally using dotrun on WSL with the docs site at localhost:8101

Screenshots

Resizing:

Before:

Resizing_before

After:

Resizing_after

Auto-grow:

Before:

Auto-grow_before

After:

Auto-grow_after

Fixes #5713

@webteam-app
Copy link
Copy Markdown

Aswath-Senthilkumar is not a collaborator of the repo

@jmuzina jmuzina requested review from advl and mariadias143 March 30, 2026 19:12
@Aswath-Senthilkumar
Copy link
Copy Markdown
Author

Should $textarea-min-height and $textarea-max-height be documented on the spacing settings page? I noticed the existing form input variables ($input-margin-bottom, $input-border-thickness) aren't listed there either, so I wasn't sure if that's the right place. Happy to add it in this PR or as a follow-up if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Component amendment]: <Multi-line text field>

2 participants