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>
AbhishekAbhishek (Salesforce Developers)

try the suggestions as mentioned in the above developer discussion.

For further reference check the below,