Mobile: BottomSheetTextControl Component: Get Text Area to Automatically Expand/Shrink with Text Entry #31281
Labels
Mobile App - i.e. Android or iOS
Native mobile impl of the block editor. (Note: used in scripts, ping mobile folks to change)
[Package] Components
/packages/components
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Type] Enhancement
A suggestion for improvement.
Projects
Description
The BottomSheetTextControl component currently has a text area with a set height:
If a user enters a large amount of text into the text area, they need to scroll within that area to view all of it, the area doesn't automatically expand/shrink to make all text visible. Around three lines of text are visible on the screen at a time, with any more being visible upon scroll.
The current behaviour was agreed upon as part of this feedback thread and currently makes sense given that the component is currently only used for the image block's alt text settings (which doesn't generally entail that many lines of text).
However, it could be a nice enhancement for the component to automatically expand/shrink with text, especially if it goes onto be used in other places in the editor where it's expected that multiple lines of text will be used.
Step-by-step reproduction instructions
Expected behaviour
The following feedback was provided by a colleague who tested the above steps:
Actual behaviour
The area doesn't currently expand, with any text overflowing the view only visible on scroll. It could be a nice enhancement to change this behaviour in the future.
The text was updated successfully, but these errors were encountered: