If you use a semantic state (danger, caution, success, whatever) with a iconOnly button, you wind up with two icons:
Obviously, this runs a little counter to the intention here, so let's tweak this behaviour so that only one icon appears at a time. We may want to consider making it effectively impossible to use two icons for the same button—I can think of very, very few use cases for this particular behaviour.
For reference, this error happens with iconOnly and trailingIcon, but if you use leadingIcon only the specified icon appears.
If you use a semantic state (danger, caution, success, whatever) with a iconOnly button, you wind up with two icons:
Obviously, this runs a little counter to the intention here, so let's tweak this behaviour so that only one icon appears at a time. We may want to consider making it effectively impossible to use two icons for the same button—I can think of very, very few use cases for this particular behaviour.
For reference, this error happens with
iconOnly
andtrailingIcon
, but if you useleadingIcon
only the specified icon appears.