function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raksha NarayanRaksha Narayan 

change the text color based on condition in aura component

I have a list of strings displayed as a dropdown. Consider the below code where TypePicklist contains the values: Normal, High and Low. I want to change the color of the text "High" dynamically. Can someone help me on this?
<lightning:select label="Type">
    <aura:iteration items="{!v.TypePicklist}" var="val">
        <option value="{!val}"> {!val}</option>
    </aura:iteration>
</lightning:select>
AbhishekAbhishek (Salesforce Developers) 
https://salesforce.stackexchange.com/questions/169671/conditional-coloring-on-a-lightning-component


try the suggestions as mentioned in the above developer discussion.

For further reference check the below,
https://developer.salesforce.com/forums/?id=906F000000099PiIAI