close
Skip to content

Widgets: Use --wpds-cursor-control design token#77368

Merged
mirka merged 1 commit into
WordPress:trunkfrom
himanshupathak95:fix/76221-widgets-cursor-control-token
Apr 15, 2026
Merged

Widgets: Use --wpds-cursor-control design token#77368
mirka merged 1 commit into
WordPress:trunkfrom
himanshupathak95:fix/76221-widgets-cursor-control-token

Conversation

@himanshupathak95
Copy link
Copy Markdown
Contributor

@himanshupathak95 himanshupathak95 commented Apr 15, 2026

What?

Part of #76221

Why?

Update the instance of cursor: pointer to use the --wpds-cursor-control design token so interactive control cursor behavior can be centrally configured.

How?

Replaced hardcoded cursor: pointer with cursor: var(--wpds-cursor-control) in the Legacy Widget block's editor stylesheet.

Testing Instructions

  1. Open the Widgets editor and add a Legacy Widget block in the block editor.
  2. Hover over the widget preview/no-preview area.
  3. Inspect the element and verify cursor: var(--wpds-cursor-control) is applied.
  4. Confirm cursor behavior is unchanged (still shows pointer via build-time fallback).

Screenshots or screencast

Before

image

After

image

@himanshupathak95 himanshupathak95 marked this pull request as ready for review April 15, 2026 12:26
@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: himanshupathak95 <abcd95@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@himanshupathak95 himanshupathak95 changed the title Widgets: Use --wpds-cursor-control design token Widgets: Use --wpds-cursor-control design token Apr 15, 2026
@mirka mirka self-requested a review April 15, 2026 14:03
@mirka mirka added the [Type] Enhancement A suggestion for improvement. label Apr 15, 2026
Copy link
Copy Markdown
Member

@mirka mirka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@mirka mirka merged commit 60c2346 into WordPress:trunk Apr 15, 2026
46 of 48 checks passed
@github-actions github-actions Bot added this to the Gutenberg 23.1 milestone Apr 15, 2026
@alecgeatches alecgeatches added the [Package] Components /packages/components label May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Components /packages/components [Type] Enhancement A suggestion for improvement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants