From e909c50fe4349e8b5e06b472e9c95cbea85ff2d6 Mon Sep 17 00:00:00 2001 From: l0ng-ai Date: Thu, 26 Nov 2026 20:43:02 +0800 Subject: [PATCH] fix(ui): use default arrow cursors on non-link controls across the IDE (#6167) ## Summary - Align non-link UI controls across the IDE with desktop IDE cursor conventions (`cursor: default` for controls, reserving `cursor: pointer` for links and editor canvas/gutter jump markers), matching `src/styles/global.css`. - **VCS / Diff / Merge**: switch split diff divider apply arrows (`>>` / `<<`), hunk gutter buttons, hover Revert button, commit-inclusion checkboxes (`.cm-include-hunk`), collapsed-lines toggle, PR review gutter `+` button, three-way merge op buttons, branch star button, and merge/rebase widget buttons to `default`; add `var(--bg-toolbar-hover)` hover background to diff divider arrows so interactivity stays clear. - **Workbench / Tool Windows / Popups**: remove `cursor: pointer` from buttons, checkboxes, tabs, list items, sortable table headers, and disclosure toggles across Settings, Tools, Plugins, Deployment, Search, Todo, Run, Services (keeping `pointer` on `.portChipLink`), Database, GitHub, Notebook, Viewers, Debugger, and LSP popups. ## Test plan - [x] Verified formatting and lint via `oxfmt` / `oxlint` - [x] Ran `pnpm vitest run src/features/vcs src/editor/lsp` (245 test files, 3330 tests passing) Made with [Cursor](https://cursor.com) --- src/editor/lsp/theme.ts | 2 -- src/features/database/Database.module.css | 5 ----- src/features/database/Diagram.module.css | 2 +- src/features/debugger/editor/editor.module.css | 2 -- src/features/deployment/Deployment.module.css | 1 - src/features/github/create/Create.module.css | 1 - src/features/github/details/Details.module.css | 4 ---- .../github/timeline/comments/comments.module.css | 3 --- src/features/notebook/Notebook.module.css | 1 - src/features/plugins/HoverActions.module.css | 1 - src/features/plugins/PluginsPage.module.css | 1 - src/features/plugins/views/PluginView.module.css | 2 -- src/features/run/Run.module.css | 8 -------- .../search/bookmarks/BookmarkPopups.module.css | 1 - src/features/search/recent/RecentPopups.module.css | 1 - src/features/services/Services.module.css | 3 +-- src/features/settings/languages/Sdk.module.css | 3 --- src/features/settings/pages/Workflow.module.css | 1 - src/features/todo/TodoView.module.css | 3 --- src/features/tools/ServerSettings.module.css | 1 - src/features/vcs/BranchWidget.module.css | 1 - src/features/vcs/DiffEditor.module.css | 10 ++++------ src/features/vcs/MergeRebaseWidget.module.css | 1 - src/features/vcs/cm.ts | 1 - src/features/vcs/hunkInclusion.ts | 2 +- src/features/vcs/mergeGutters.ts | 1 - src/features/vcs/reviewGutter.ts | 2 +- src/features/viewers/markdown/MermaidTools.module.css | 1 - 28 files changed, 8 insertions(+), 57 deletions(-) diff --git a/src/editor/lsp/theme.ts b/src/editor/lsp/theme.ts index b09a86ba0b..1d50fb155e 100644 --- a/src/editor/lsp/theme.ts +++ b/src/editor/lsp/theme.ts @@ -264,7 +264,6 @@ export const lspTheme = EditorView.theme({ background: "none", color: "var(--fg-subtle)", font: "inherit", - cursor: "pointer", }, ".cm-lsp-completion-sort:hover": { color: "var(--fg)" }, '.cm-lsp-completion-sort[aria-pressed="true"]': { color: "var(--link)" }, @@ -519,7 +518,6 @@ export const lspTheme = EditorView.theme({ whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis", - cursor: "pointer", }, ".cm-lsp-inplace-suggestions button:hover": { backgroundColor: "var(--bg-hover)" }, '.cm-lsp-inplace-suggestions button[aria-current="true"]': { diff --git a/src/features/database/Database.module.css b/src/features/database/Database.module.css index 3700c74ff4..f60c84d26a 100644 --- a/src/features/database/Database.module.css +++ b/src/features/database/Database.module.css @@ -38,9 +38,6 @@ white-space: nowrap; color: var(--fg-strong); } -.sortable { - cursor: pointer; -} .sortable:hover { background: var(--bg-hover); } @@ -855,7 +852,6 @@ border-radius: var(--radius-small); background: transparent; color: var(--fg-secondary); - cursor: pointer; } /* Parameter info in `VALUES (…)`. */ @@ -1096,7 +1092,6 @@ border-radius: var(--radius-small); background: transparent; color: var(--fg-muted); - cursor: pointer; } .headerFilter:hover { background: var(--bg-hover); diff --git a/src/features/database/Diagram.module.css b/src/features/database/Diagram.module.css index 6db94d4454..a8c962e733 100644 --- a/src/features/database/Diagram.module.css +++ b/src/features/database/Diagram.module.css @@ -90,7 +90,7 @@ fill: var(--accent); } .toggle { - cursor: pointer; + cursor: default; } .toggle > rect { fill: transparent; diff --git a/src/features/debugger/editor/editor.module.css b/src/features/debugger/editor/editor.module.css index 422e9ddcd4..fbb106f5a9 100644 --- a/src/features/debugger/editor/editor.module.css +++ b/src/features/debugger/editor/editor.module.css @@ -222,7 +222,6 @@ border-radius: var(--radius-small); background: transparent; color: var(--fg-muted); - cursor: pointer; } .valueExpand:hover { background: var(--bg-hover, transparent); @@ -262,7 +261,6 @@ background: var(--bg-popup); box-shadow: var(--shadow-tooltip); color: var(--fg); - cursor: pointer; } .runToCursor:hover { diff --git a/src/features/deployment/Deployment.module.css b/src/features/deployment/Deployment.module.css index f7b7d87014..7928e722f0 100644 --- a/src/features/deployment/Deployment.module.css +++ b/src/features/deployment/Deployment.module.css @@ -159,7 +159,6 @@ color: var(--fg-muted); background: transparent; font-size: 19px; - cursor: pointer; } .filterButton[aria-pressed="true"] { background: var(--bg-tree-hover); diff --git a/src/features/github/create/Create.module.css b/src/features/github/create/Create.module.css index 47c91c5398..04a6a25adb 100644 --- a/src/features/github/create/Create.module.css +++ b/src/features/github/create/Create.module.css @@ -364,7 +364,6 @@ border-radius: 0 var(--radius-control, 4px) var(--radius-control, 4px) 0; background: var(--bg-button-primary); color: var(--fg-button-primary); - cursor: pointer; } .optionArrow:disabled { opacity: 0.5; diff --git a/src/features/github/details/Details.module.css b/src/features/github/details/Details.module.css index 2a92b0c47f..99493b66b9 100644 --- a/src/features/github/details/Details.module.css +++ b/src/features/github/details/Details.module.css @@ -132,7 +132,6 @@ border: none; background: none; color: inherit; - cursor: pointer; } .branchLink { min-width: 0; @@ -325,7 +324,6 @@ border: 1px solid var(--border-checkbox); border-radius: 3px; background: var(--bg-checkbox); - cursor: pointer; } .viewedChecked { border-color: var(--accent); @@ -334,7 +332,6 @@ } .editSource { display: inline-flex; - cursor: pointer; } .onHover { display: none; @@ -426,7 +423,6 @@ border-bottom-right-radius: var(--radius-control); background: var(--bg-button); color: var(--fg); - cursor: pointer; } .optionArrow:hover { background: var(--bg-control-hover); diff --git a/src/features/github/timeline/comments/comments.module.css b/src/features/github/timeline/comments/comments.module.css index 002eaeb392..336700671a 100644 --- a/src/features/github/timeline/comments/comments.module.css +++ b/src/features/github/timeline/comments/comments.module.css @@ -208,7 +208,6 @@ gap: var(--space-1-5); padding: 2px 8px; white-space: nowrap; - cursor: pointer; } .mention[data-active] { background: var(--bg-list-selected); @@ -233,7 +232,6 @@ color: var(--fg); font: inherit; font-size: 11px; - cursor: pointer; } .pill:hover:not(:disabled) { background: var(--gh-reaction-bg-hover); @@ -263,7 +261,6 @@ background: none; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 22px; - cursor: pointer; } .pickerEmoji:hover, .pickerEmoji[data-own] { diff --git a/src/features/notebook/Notebook.module.css b/src/features/notebook/Notebook.module.css index d7dd0d961e..2dd536a70f 100644 --- a/src/features/notebook/Notebook.module.css +++ b/src/features/notebook/Notebook.module.css @@ -120,7 +120,6 @@ background: none; color: var(--fg-muted); text-align: left; - cursor: pointer; } .collapsedCell { padding: 6px 12px; diff --git a/src/features/plugins/HoverActions.module.css b/src/features/plugins/HoverActions.module.css index d3a124b05a..995ae4ccdc 100644 --- a/src/features/plugins/HoverActions.module.css +++ b/src/features/plugins/HoverActions.module.css @@ -27,7 +27,6 @@ color: var(--fg-muted); font-family: var(--font-ui); font-size: var(--fs-small); - cursor: pointer; } .button { diff --git a/src/features/plugins/PluginsPage.module.css b/src/features/plugins/PluginsPage.module.css index 1e37ca1fa9..dfcedd588f 100644 --- a/src/features/plugins/PluginsPage.module.css +++ b/src/features/plugins/PluginsPage.module.css @@ -98,7 +98,6 @@ background: none; color: inherit; font: inherit; - cursor: pointer; } .groupToggle:hover { color: var(--fg); diff --git a/src/features/plugins/views/PluginView.module.css b/src/features/plugins/views/PluginView.module.css index 5295449d98..a942c2421f 100644 --- a/src/features/plugins/views/PluginView.module.css +++ b/src/features/plugins/views/PluginView.module.css @@ -20,7 +20,6 @@ font: inherit; padding: 2px 6px; border-radius: 4px; - cursor: pointer; } .textButton:hover:not(:disabled) { @@ -173,7 +172,6 @@ /* A sortable table's header: clickable, the sorted one marked by an arrow. */ .headerCell { - cursor: pointer; user-select: none; } diff --git a/src/features/run/Run.module.css b/src/features/run/Run.module.css index 3ac69c4d65..ad721d2b60 100644 --- a/src/features/run/Run.module.css +++ b/src/features/run/Run.module.css @@ -26,7 +26,6 @@ background: none; color: var(--fg-muted); font: inherit; - cursor: pointer; } .agentArchive:hover { background: var(--bg-hover); @@ -1239,7 +1238,6 @@ border-radius: 3px; padding: 0 6px; font: inherit; - cursor: pointer; } .fold:hover { color: var(--fg); @@ -1258,7 +1256,6 @@ background: var(--bg-app); color: var(--fg-faint); vertical-align: top; - cursor: pointer; } .foldToggle:hover { color: var(--fg); @@ -1392,7 +1389,6 @@ box-shadow: inset 0 0 0 1px var(--border-button); color: var(--fg); font-size: var(--fs-ui); - cursor: pointer; flex: none; } .tomcatDotsBtn:hover { @@ -1647,9 +1643,6 @@ font-size: var(--fs-small); border-bottom: 1px solid var(--border-popup); } -.tomcatLogRow { - cursor: pointer; -} .tomcatLogRow:hover { background: var(--bg-hover); } @@ -1748,7 +1741,6 @@ color: var(--fg-secondary); font-size: var(--fs-ui); font-weight: 500; - cursor: pointer; } .addServerDialogBody { display: flex; diff --git a/src/features/search/bookmarks/BookmarkPopups.module.css b/src/features/search/bookmarks/BookmarkPopups.module.css index 4274c3af7c..aa8114c3d0 100644 --- a/src/features/search/bookmarks/BookmarkPopups.module.css +++ b/src/features/search/bookmarks/BookmarkPopups.module.css @@ -36,7 +36,6 @@ color: var(--fg); font: inherit; font-size: var(--fs-small); - cursor: pointer; } .key:hover { border-color: var(--accent); diff --git a/src/features/search/recent/RecentPopups.module.css b/src/features/search/recent/RecentPopups.module.css index 1ee9bcb971..4a0788b82a 100644 --- a/src/features/search/recent/RecentPopups.module.css +++ b/src/features/search/recent/RecentPopups.module.css @@ -130,7 +130,6 @@ color: var(--fg); font: inherit; text-align: left; - cursor: pointer; } .locationsLink:hover { color: var(--fg-strong); diff --git a/src/features/services/Services.module.css b/src/features/services/Services.module.css index abbe7b3a0e..3f1954ea0f 100644 --- a/src/features/services/Services.module.css +++ b/src/features/services/Services.module.css @@ -336,7 +336,6 @@ font-family: var(--font-ui); font-size: var(--fs-tiny); line-height: 1; - cursor: pointer; } .commandToggle:hover { background: var(--bg-hover); @@ -465,7 +464,6 @@ color: var(--fg); font: inherit; font-size: var(--fs-small); - cursor: pointer; } .entityChip:disabled { cursor: default; @@ -479,6 +477,7 @@ button.entityChip:not(:disabled):hover { } .portChipLink { color: var(--link); + cursor: pointer; } .chipMeta { color: var(--fg-subtle); diff --git a/src/features/settings/languages/Sdk.module.css b/src/features/settings/languages/Sdk.module.css index edeefd2d1b..9b2811bf57 100644 --- a/src/features/settings/languages/Sdk.module.css +++ b/src/features/settings/languages/Sdk.module.css @@ -535,7 +535,6 @@ color: var(--fg-secondary); font: inherit; white-space: nowrap; - cursor: pointer; } .sectionTab:hover { background: var(--bg-toolbar-hover); @@ -602,7 +601,6 @@ color: var(--fg); font: inherit; text-align: left; - cursor: pointer; } .sideItem:hover { background: var(--bg-hover); @@ -788,7 +786,6 @@ color: var(--fg); font: inherit; text-align: left; - cursor: pointer; } .psNavItem > span { min-width: 0; diff --git a/src/features/settings/pages/Workflow.module.css b/src/features/settings/pages/Workflow.module.css index 2041640d16..e69be482a1 100644 --- a/src/features/settings/pages/Workflow.module.css +++ b/src/features/settings/pages/Workflow.module.css @@ -320,7 +320,6 @@ .toolOptions > summary { width: fit-content; padding-block: var(--space-1); - cursor: pointer; } .toolOptions > div { padding-top: var(--space-1); diff --git a/src/features/todo/TodoView.module.css b/src/features/todo/TodoView.module.css index ee4c4502eb..f3be2f0deb 100644 --- a/src/features/todo/TodoView.module.css +++ b/src/features/todo/TodoView.module.css @@ -50,9 +50,6 @@ max-block-size: 45%; border-bottom: 1px solid var(--border); } -.skippedSummary summary { - cursor: pointer; -} .skippedOnly h3 { margin: 0; font: inherit; diff --git a/src/features/tools/ServerSettings.module.css b/src/features/tools/ServerSettings.module.css index 1c20ee3144..20bde1892c 100644 --- a/src/features/tools/ServerSettings.module.css +++ b/src/features/tools/ServerSettings.module.css @@ -29,7 +29,6 @@ background: none; font: inherit; text-align: left; - cursor: pointer; } .sectionToggle:focus-visible { outline: 2px solid var(--accent); diff --git a/src/features/vcs/BranchWidget.module.css b/src/features/vcs/BranchWidget.module.css index 92afef0c0a..87a888f1c2 100644 --- a/src/features/vcs/BranchWidget.module.css +++ b/src/features/vcs/BranchWidget.module.css @@ -184,7 +184,6 @@ border: none; background: transparent; color: var(--fg-subtle); - cursor: pointer; } .star > * { grid-area: 1 / 1; diff --git a/src/features/vcs/DiffEditor.module.css b/src/features/vcs/DiffEditor.module.css index 0a08efbb5e..2284ff4e85 100644 --- a/src/features/vcs/DiffEditor.module.css +++ b/src/features/vcs/DiffEditor.module.css @@ -232,7 +232,7 @@ } .host :global(.cm-merge-revert button:hover) { color: var(--fg-strong); - background: transparent; + background: var(--bg-toolbar-hover); } .hunkGutter { min-width: var(--h-row); @@ -256,7 +256,6 @@ padding: 0; background: transparent; color: var(--fg-secondary); - cursor: pointer; } .hunkButtons > button:hover, .hunkButtons > button:focus-visible { @@ -280,7 +279,7 @@ padding: 0; border: 0; background: none; - cursor: pointer; + cursor: default; } .host :global(.cm-diffHoverLine) { position: relative; @@ -301,7 +300,6 @@ color: var(--fg-secondary); font-family: var(--font-ui); font-size: var(--fs-tiny); - cursor: pointer; } .host :global(.cm-diffHoverRevert:hover) { color: var(--fg-strong); @@ -412,7 +410,7 @@ border-radius: var(--radius-small); background: none; color: var(--fg-subtle); - cursor: pointer; + cursor: default; } .host :global(.cm-diffDivider button.cm-diffArrow-a-to-b) { left: 0; @@ -428,7 +426,7 @@ } .host :global(.cm-diffDivider button.cm-diffArrow:hover) { color: var(--fg-strong); - background: transparent; + background: var(--bg-toolbar-hover); } /* Where the other pane has lines this one lacks. */ .host :global(.cm-diffGap-inserted) { diff --git a/src/features/vcs/MergeRebaseWidget.module.css b/src/features/vcs/MergeRebaseWidget.module.css index 8ccec5e02b..876760b562 100644 --- a/src/features/vcs/MergeRebaseWidget.module.css +++ b/src/features/vcs/MergeRebaseWidget.module.css @@ -14,7 +14,6 @@ padding: 0; border: 0; border-radius: var(--radius-toolbar-button); - cursor: pointer; } .go { background: var(--success); diff --git a/src/features/vcs/cm.ts b/src/features/vcs/cm.ts index f86326471b..86c6c0392e 100644 --- a/src/features/vcs/cm.ts +++ b/src/features/vcs/cm.ts @@ -523,7 +523,6 @@ export const viewerTheme = EditorView.theme( fontSize: "var(--fs-ui)", lineHeight: "1.4", textAlign: "start", - cursor: "pointer", }, ".cm-collapsedLines > button:hover, .cm-collapsedLines > button:focus-visible": { backgroundColor: "var(--bg-hover)", diff --git a/src/features/vcs/hunkInclusion.ts b/src/features/vcs/hunkInclusion.ts index 3edd5434fc..b45c05ace8 100644 --- a/src/features/vcs/hunkInclusion.ts +++ b/src/features/vcs/hunkInclusion.ts @@ -193,7 +193,7 @@ class CheckboxMarker extends GutterMarker { const theme = EditorView.baseTheme({ ".cm-include-gutter .cm-gutterElement": { display: "flex", alignItems: "center", padding: "0 2px" }, - ".cm-include-hunk": { margin: 0, width: "12px", height: "12px", accentColor: "var(--accent)", cursor: "pointer" }, + ".cm-include-hunk": { margin: 0, width: "12px", height: "12px", accentColor: "var(--accent)", cursor: "default" }, }); /** diff --git a/src/features/vcs/mergeGutters.ts b/src/features/vcs/mergeGutters.ts index b989632bbb..a14b99d386 100644 --- a/src/features/vcs/mergeGutters.ts +++ b/src/features/vcs/mergeGutters.ts @@ -246,7 +246,6 @@ export const mergeTheme = EditorView.baseTheme({ borderRadius: "var(--radius-small)", color: "var(--fg-secondary)", background: "transparent", - cursor: "pointer", }, ".cm-merge-op:hover": { color: "var(--fg-strong)", background: "var(--bg-control-hover)" }, ".cm-merge-conflict": { backgroundColor: "color-mix(in srgb, var(--vcs-conflict) 14%, transparent)" }, diff --git a/src/features/vcs/reviewGutter.ts b/src/features/vcs/reviewGutter.ts index 1dc8ef33a8..aec5d1940d 100644 --- a/src/features/vcs/reviewGutter.ts +++ b/src/features/vcs/reviewGutter.ts @@ -343,7 +343,7 @@ const theme = EditorView.baseTheme({ height: "var(--cm-review-line, 1.4em)", display: "flex", alignItems: "center", - cursor: "pointer", + cursor: "default", }, ".cm-reviewHandle": { position: "absolute", diff --git a/src/features/viewers/markdown/MermaidTools.module.css b/src/features/viewers/markdown/MermaidTools.module.css index d85b6a8781..cea18ebd98 100644 --- a/src/features/viewers/markdown/MermaidTools.module.css +++ b/src/features/viewers/markdown/MermaidTools.module.css @@ -27,7 +27,6 @@ border-radius: var(--radius-small); background: var(--bg-elev); color: var(--fg-secondary); - cursor: pointer; user-select: none; } .tool:hover {