Skip to content

[POS UI Extensions] TextArea shifting/inconsistent size between states when rows is set #1728

Open
@timvandam

Description

@timvandam

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:

  1. Put TextArea and a TextField components in a POS UI Extension
  2. Play around with the TextArea, and see the size changes, and the difference in vertical margin between TextArea and TextField

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.

Screenshots

RPReplay_Final1707655664-ezgif com-video-to-gif-converter

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions