Skip to content

KTextbox: Unnecessary dom node and some styles cause unexpected space #1187

@AlexVelezLl

Description

@AlexVelezLl

This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Observed behavior

KTextbox always renders this ui-textbox-feedback even if no feedback (e.g., error messages) are being shown. This causes some horizontal layouts where KTextbox is next to other inputs; the different inputs are stretched to match KTextbox's height.

Image Image

In vertical layouts, this node also causes a discrepancy in the gap size between inputs.

Image Image

Expected behavior

In general, it seems we need to find a better, standard way to align for these horizontal and vertical layouts when we have several inputs for different fields. At first, when no feedback is needed, we can just hide this node, but if we have invalid text set for the KTextbox, we will still have the problem of the other inputs being stretched.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions