Skip to main content
I have the following code:

 

<lightning:select aura:id="requestTypeSelect"

name="requestTypeSelect"

label="I'd like to: "

required="true"

value="{!v.requestTypeName}"

onchange="{!c.setRequestTypeCmp}"

class="font">

The font size of the label "I'd like to:" is small and I'd like to increase it.  Changing the font in any way via a class, like "font" above, only changes the font within the select menu, not the label itself.

Is this possible?

Thanks!

 
6 respuestas
  1. 17 may 2019, 13:43
    Hi,

    Done change your component code:

    <lightning:select aura:id="requestTypeSelect"

    name="requestTypeSelect"

    label="I'd like to: "

    required="true"

    value="{!v.requestTypeName}"

    onchange="{!c.setRequestTypeCmp}"

    class="font">

    <option value="">-- None --</option>

    <aura:iteration items="{!v.requestTypeNames}" var="requestTypeName">

    <option value="{!requestTypeName}">{!requestTypeName}</option>

    </aura:iteration>

    </lightning:select>

    And just change the CSS from the Style section of lightning component and add these lines :

    .THIS .slds-form-element__label{

    font-size: 1.75rem !important;

    }

    Hi,Done change your component code:<lightning:select aura:id=

    Thanks

    Ajay Dubedi
0/9000