Changing the mouse cursor on Canva's React Flow (#420)
## Description This pull request introduces a new feature that allows users to change the mouse cursor on Canva's React Flow. By updating the CSS and JavaScript code, the cursor behavior can be modified to provide a customized experience for users. ## Motivation The ability to change the mouse cursor provides a way to enhance user interaction and personalize the user experience within Canva's React Flow. This feature can be particularly useful for applications or websites that require specific cursor styles to match the overall design or functionality.
This commit is contained in:
commit
4c901ec022
1 changed files with 6 additions and 0 deletions
|
|
@ -15,3 +15,9 @@ code {
|
|||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||
monospace;
|
||||
}
|
||||
|
||||
/* The style below sets the cursor property of the element with the class .react-flow__pane to the default cursor.
|
||||
The cursor: default; property value restores the browser's default cursor style for the targeted element. By applying this style, the element will no longer have a custom cursor appearance such as "grab" or any other custom cursor defined elsewhere in the application. Instead, it will revert to the default cursor style determined by the browser, typically an arrow-shaped cursor. */
|
||||
.react-flow__pane {
|
||||
cursor: default;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue