1

enter image description here

component Code:

<div class="slds-grid slds-gutters "> 
    <div class="slds-col slds-size_2-of-8">  
      <label class="slds-text-title_bold">
      Monthly internal financial statements
      </label>                       
    </div>                     
    <div class="slds-col slds-size_1-of-8"> 
      <lightning:button label="Upload" class="slds-button" variant="brand" onclick="{!c.UploadPLDocuments}"></lightning:button> 
    </div> 
    <div class="slds-col slds-size_1-of-12"> 
      <lightning:input type="checkbox" name="input1" labelVisible="false"/>
    </div> 
    <div class="slds-col slds-size_2-of-8"> 
      <lightning:textarea aura:id="txtnotes" value="" maxlength="5000"/>                                  
    </div> 
</div>
0

1 Answer 1

0

Make your textarea have a variant of label-hidden eg

<lightning:textarea aura:id="txtnotes" 
                    variant="label-hidden" 
                    value="" 
                    maxlength="5000"/>  

This will mean that the label, which is empty, won't be rendered and take up space.

2
  • Thanks a lot Caspar. It worked.
    – user105642
    Commented Oct 6, 2021 at 17:56
  • If it worked for you, you can upvote and mark as accepted. Commented Oct 6, 2021 at 17:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .