diff --git a/ui/component/button/view.jsx b/ui/component/button/view.jsx index a631763ad..ead7df67d 100644 --- a/ui/component/button/view.jsx +++ b/ui/component/button/view.jsx @@ -94,7 +94,10 @@ const Button = forwardRef((props: Props, ref: any) => { {icon && } - {label && ( + {!largestLabel && label && {label}} + + {/* largestLabel is used when a single button has two different labels based on hover state */} + {largestLabel && (
((props: Props, ref: any) => { return ( { + onClick={e => { e.stopPropagation(); }} to={`/$/${PAGES.AUTH}?redirect=${pathname}`} @@ -176,7 +179,7 @@ const Button = forwardRef((props: Props, ref: any) => { to={path} title={title} disabled={disabled} - onClick={(e) => { + onClick={e => { e.stopPropagation(); if (onClick) { onClick(); @@ -194,7 +197,7 @@ const Button = forwardRef((props: Props, ref: any) => { title={title} aria-label={description || label || title} className={combinedClassName} - onClick={(e) => { + onClick={e => { if (onClick) { e.stopPropagation(); onClick(e);