Description
The design specifications of the Default View show text and select fields having the minimum necessary width to fit the content, and when focused, they would expand to take 100% horizontal space. There are some difficulties on controlling the width of the TextInput and Lookup fields so that they fit the content, but it can be worked out.
This task is to find an appropriate solution that can fulfill these designs.
Desired behavior/Acceptance criteria
For text and select fields:
- The width should be the minimum necessary to wrap the content (if any)
- If no content, the width should wrap the placeholder
- If no content or placeholder, define a default width
- On focus, the width should be expanded into the 100%
- The expansion should be animated
Devices and Design (URLs or screenshots)
https://www.figma.com/file/uNBSv1e4ceA8tGNr29R9vp/Default-component
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Front-end_Task/Bug_Completion_Checklist