Sets or gets the icon color of an element.
The icon color value is a string representing an rgb color in one of the following formats:
"red"
: One of 140 predefined color names."#FF0000"
: A hexadecimal rgb color value."rgb(255,0,0)"
: An rgb() function color value.This style can only be used with the Button
element.
Note:
The iconColor
style only works with Styled Buttons.