Skip to content

Commit d520dbc

Browse files
authored
Fix [Wizard] Steps in small resolution (#373)
1 parent 1b0ffcb commit d520dbc

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib/components/Button/Button.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,10 @@ const Button = forwardRef(
4646
return (
4747
<button {...restProps} className={buttonClassName} ref={ref} data-testid={id}>
4848
{icon && iconPosition === 'left' && icon}
49-
{tooltip ? (
50-
<Tooltip template={<TextTooltipTemplate text={tooltip} />}>
49+
{(tooltip || label) && (
50+
<Tooltip template={<TextTooltipTemplate text={tooltip || label} />}>
5151
{label && <span>{label}</span>}
5252
</Tooltip>
53-
) : (
54-
label && <span>{label}</span>
5553
)}
5654
{icon && iconPosition === 'right' && icon}
5755
</button>

0 commit comments

Comments
 (0)