Open
Description
Please list the package(s) involved in the issue, and include the version you are using
@shopify/[email protected]
@shopify/[email protected]
Describe the bug ui issues
A minor ui issue: the size of the TextArea
component changes depending on whether you are focused on not, and whether it has content or not. This only happens when the rows
prop is set to something other than 1
.
Additionally, TextArea
seems to have a large vertical margin that other input components (e.g. TextField
) do not have. This makes layouts containing both TextField
and TextArea
inconsistent.
Steps to reproduce the behavior:
- Put
TextArea
and aTextField
components in a POS UI Extension - Play around with the
TextArea
, and see the size changes, and the difference in vertical margin betweenTextArea
andTextField
Expected behavior
I would expect the size of TextArea
to stay consistent as long as the content does not change. Additionally, I would expect the same margin as TextField
. Additional padding can always be added later on using the paddingVertical
and paddingHorizontal
props of the Stack
component.