You need to sign in to do that
Don't have an account?
Laurie Drew
Lightning Components Basics - ui:inputDate field -How do I change the color of the label?
I have found a way through CSS to change the colour of the label for all of my <lightning:input> fields using the code below:
.THIS label.slds-form-element__label{
font-size: 1.00rem;
color: blue;
}
but I have 2 fields that are <ui:inputDate> fields, how do I change the colour of their label?
Here is the code for the Purchase Date field:
<ui:inputDate aura:id="PurchaseDate" label="Purchase Date" class="field" value="{!v.AcctForm.PurchaseDate__c}" displayDatePicker="true" />
Thank you in advance for any assitance you can provide.
.THIS label.slds-form-element__label{
font-size: 1.00rem;
color: blue;
}
but I have 2 fields that are <ui:inputDate> fields, how do I change the colour of their label?
Here is the code for the Purchase Date field:
<ui:inputDate aura:id="PurchaseDate" label="Purchase Date" class="field" value="{!v.AcctForm.PurchaseDate__c}" displayDatePicker="true" />
Thank you in advance for any assitance you can provide.
Greetings to you!
- Use the below code and CSS from "ui:inputDate" .
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.
Thanks and Regards,
Deepali Kulshrestha.