Skip to content

[TextaArea] Labeled textarea hides text behind icon label #276

Closed
@perezdev

Description

@perezdev

If you setup a left corner labeled input, the text is automatically padded to prevent overlap with the icon:

<div class="ui small left corner labeled input">
    <input type="text" />

    <div class="ui left corner label">
        <i class="asterisk icon"></i>
    </div>
</div>

Result:

image

But if you do the same with a TextArea, the icon label overlaps the text:

<div class="ui left corner labeled input">
    <div class="ui left corner label">
        <i class="asterisk icon"></i>
    </div>
    <textarea rows="2" asp-for="RequestInput.Description"></textarea>
</div>

image

I looked and saw that the input has a 2.5em left padding. Adding that to the textarea fixes the issue.

<div class="ui left corner labeled input">
    <div class="ui left corner label">
        <i class="asterisk icon"></i>
    </div>
    <textarea rows="2" style="padding-left: 2.5em !important;"></textarea>
</div>

image

Metadata

Metadata

Assignees

Labels

lang/cssAnything involving CSStype/featAny feature requests or improvements

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions