carbon
carbon copied to clipboard
Button: Update types to be a conditional proptype (or a union in TS) of `if hasIconOnly, kind !== "danger"`
danger
is not a valid type
of IconButton
or <Button hasIconOnly/>
, we need to update the proptypes and TS interfaces to state this.