Skip to content

Multiline fields in forms have no visible label #7428

@navarr

Description

@navarr

Preconditions

  1. Magento CE 2.1.2
  2. Custom <uiComponent /> form

Steps to reproduce

  1. Create a <field>
  2. Set it's formElement to multiline
  3. Load the form in the browser

(Example <field>):

    <field name="street">
        <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
                <item name="label" xsi:type="string" translate="true">Street</item>
                <item name="dataType" xsi:type="string">text</item>
                <item name="size" xsi:type="number">2</item>
                <item name="formElement" xsi:type="string">multiline</item>
                <item name="visible" xsi:type="boolean">true</item>
                <item name="source" xsi:type="string">general</item>
                <item name="validation" xsi:type="array">
                    <item name="required-entry" xsi:type="boolean">true</item>
                </item>
            </item>
        </argument>
    </field>

Expected result

(The label "Street" to be visible to the left of the top input)

Actual result

The label ("Street" in this case) matches the following CSS rule:

.admin__field legend.admin__field-label {
    opacity: 0;
}

Rendering it invisible.

The less responsible for this was added to the code in this commit

Metadata

Metadata

Assignees

Labels

Area: FrontendEvent: distributed-cdDistributed Contribution DayFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasebug report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions