Orange-OpenSource / Orange-OpenSource/ouds-android
For `text area` component, add a `singleMinLine` parameter
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 22
- Forks
- 5
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 30
Description
Context
Today the minimum height of the text area is fixed and relies on a component token (approximatively 3 lines).
For chat application, we need a text area that can be on a single line by default (takes less space at the bottom of the screen) and that is dynamically resized when the user writes. Like on WhatsApp app for example.
Description
A singleMinLine boolean parameter must be added to the text area API, set to false by default.
When the user set this parameter to true, the minimum height of the text area component must be equivalent to one line.
Be careful, when singleMinLine is set to true, the auto-resize parameter must be set to true. singleMinLine cannot be set to true if auto-resize is disabled.
Definition of Done
- Update component
text area(API, doc, demo app)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the text area component, its API, documentation, and demo app. Review how the current minimum height, component token, and auto-resize behavior are implemented. Done means adding the false-by-default singleMinLine parameter, enforcing its relationship with auto-resize, and updating the component documentation and demo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100