From 5d670417e2eb5ea6831d8be0756f05be009da732 Mon Sep 17 00:00:00 2001 From: Shaurya Gupta Date: Sat, 29 Apr 2023 20:08:36 +0530 Subject: [PATCH] fixes cursor default to pointer (#5696) * fixes cursor default to pointer * Added cursor to icon widget --------- Co-authored-by: Kavin Venkatachalam --- frontend/src/Editor/Components/Icon.jsx | 9 +++++++-- frontend/src/_styles/theme.scss | 1 - 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/src/Editor/Components/Icon.jsx b/frontend/src/Editor/Components/Icon.jsx index 68e5bc40ab..19ccbd82b7 100644 --- a/frontend/src/Editor/Components/Icon.jsx +++ b/frontend/src/Editor/Components/Icon.jsx @@ -3,11 +3,13 @@ import React, { useState, useEffect } from 'react'; import * as Icons from '@tabler/icons-react'; import cx from 'classnames'; -export const Icon = ({ properties, styles, fireEvent, width, height, registerAction, darkMode, dataCy }) => { +export const Icon = ({ properties, styles, fireEvent, width, height, registerAction, darkMode, dataCy, component }) => { const { icon } = properties; const { iconColor, visibility } = styles; // eslint-disable-next-line import/namespace const IconElement = Icons[icon]; + const { definition } = component; + const { events = [] } = definition; const color = iconColor === '#000' ? (darkMode ? '#fff' : '#000') : iconColor; @@ -31,7 +33,10 @@ export const Icon = ({ properties, styles, fireEvent, width, height, registerAct }); return ( -
+
0 })} + data-cy={dataCy} + >