Update packages/web/src/components/toolbarButton.tsx

Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-09-18 14:05:43 +02:00 committed by GitHub
parent a0de3d84f0
commit bb7b56776a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ export const ToolbarButton: React.FC<React.PropsWithChildren<ToolbarButtonProps>
className,
}) => {
return <button
className={clsx(className, `toolbar-button ${icon}`, toggled && 'toggled')}
className={clsx(className, 'toolbar-button', icon, toggled && 'toggled')}
onMouseDown={preventDefault}
onClick={onClick}
onDoubleClick={preventDefault}