From 582d26e858c4166756afcd33856ec36f5999ee98 Mon Sep 17 00:00:00 2001 From: Faustino Kialungila Date: Sun, 26 Apr 2020 11:45:35 +0200 Subject: [PATCH] fix tool icon button on mobile (#1489) --- src/components/ToolButton.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ToolButton.tsx b/src/components/ToolButton.tsx index 49a2682142..98d29e3770 100644 --- a/src/components/ToolButton.tsx +++ b/src/components/ToolButton.tsx @@ -50,9 +50,9 @@ export const ToolButton = React.forwardRef(function ( className={`ToolIcon_type_button ToolIcon ${sizeCn}${ props.selected ? " ToolIcon--selected" : "" } ${props.className || ""} ${ - props.visible - ? "ToolIcon_type_button--hide" - : "ToolIcon_type_button--show" + props.visible || props.visible == null + ? "ToolIcon_type_button--show" + : "ToolIcon_type_button--hide" }`} title={props.title} aria-label={props["aria-label"]}