Skip to content

artifact-canvas: show arrow cursor (not I-beam) over markdown content — content is read-only, comments are button-driven #1232

Closed

Description

@amrmelsayed

Problem

Hovering the rendered markdown content in the artifact canvas (afx open / annotation viewer) shows the browser-default I-beam text cursor. But the surface's interaction model makes that the wrong signal:

  • Content is read-only — nothing is editable, so the I-beam's insertion/editing connotation misleads.
  • Comments are not selection-anchored. The mechanic is hover-a-block → the "+" CommentAffordance button appears → click it (onActivate(line), line-anchored — see src/overlays/CommentAffordance.tsx and the activeLine wiring in src/components/ArtifactCanvas.tsx). Text selection plays no role. The right comparison is GitHub's diff view (hover-line-plus-button), not select-to-highlight surfaces like Medium.

Fix

Show the plain arrow uniformly over the content body — including code blocks (decided: uniform, no code-block I-beam exception, for consistency).

One rule in packages/artifact-canvas/src/styles/default-theme.css, targeting the content container (.codev-artifact-canvas-body, ArtifactCanvas.tsx:432):

.codev-artifact-canvas-body { cursor: default; }

This sharpens the affordance contrast: on block hover, the "+" button (already cursor: pointer) becomes the only element advertising interactivity.

Deliberately unchanged

  • Links inside rendered markdown keep the pointing hand (UA stylesheet on a[href] — more specific than the container rule, no override needed; verify in review).
  • The five existing pointer/default rules (add-comment button, marker-card actions, composer buttons, disabled submit, minimap dots) stay as-is.
  • Selection/copy still works — cursor: default is cosmetic; drag-select and copy are unaffected. Accepted trade-off: no visual hint that text is copyable.

Scope

One CSS rule + a check that links still show the hand. AIR-scoped (or fold into any nearby artifact-canvas PR).

Activity

  1. added
    area/vscode
    on Jul 23, 2026
  2. added 2 commits that reference this issue on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions