Discovery fixes #2576
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,7 @@ type Props = {
|
||||||
type: string,
|
type: string,
|
||||||
button: ?string, // primary, secondary, alt, link
|
button: ?string, // primary, secondary, alt, link
|
||||||
iconSize?: number,
|
iconSize?: number,
|
||||||
|
iconColor?: string,
|
||||||
constrict: ?boolean, // to shorten the button and ellipsis, only use for links
|
constrict: ?boolean, // to shorten the button and ellipsis, only use for links
|
||||||
activeClass?: string,
|
activeClass?: string,
|
||||||
innerRef: ?any,
|
innerRef: ?any,
|
||||||
|
@ -51,6 +52,7 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
description,
|
description,
|
||||||
button,
|
button,
|
||||||
iconSize,
|
iconSize,
|
||||||
|
iconColor,
|
||||||
constrict,
|
constrict,
|
||||||
activeClass,
|
activeClass,
|
||||||
...otherProps
|
...otherProps
|
||||||
|
@ -75,10 +77,10 @@ const Button = forwardRef<any, {}>((props: Props, ref: any) => {
|
||||||
|
|
||||||
const content = (
|
const content = (
|
||||||
<span className="button__content">
|
<span className="button__content">
|
||||||
{icon && <Icon icon={icon} size={iconSize} />}
|
{icon && <Icon icon={icon} iconColor={iconColor} size={iconSize} />}
|
||||||
{label && <span className="button__label">{label}</span>}
|
{label && <span className="button__label">{label}</span>}
|
||||||
{children && children}
|
{children && children}
|
||||||
{iconRight && <Icon icon={iconRight} size={iconSize} />}
|
{iconRight && <Icon icon={iconRight} iconColor={iconColor} size={iconSize} />}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue