简体   繁体   中英

Flex: How to change text color of component label/selected item in ComboBox?

When I set style color, it changes both the text color for the selected item/component label and the text in the dropdown menu.

color
Type: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label. The default value is 0x0B333C.

I would really like the label to be white and the text to be black. Is that possible?

I found the solution:

ComboBox {
   iconColor: #FFFFFF;
   textInputStyleName: cboHeaderColor;
}

.cboHeaderColor {
    color: #FFFFFF;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM