close
Skip to content

Commands: Use --wpds-cursor-control design token#77358

Merged
mirka merged 3 commits into
WordPress:trunkfrom
hbhalodia:fix/issue-76221-commands
Apr 15, 2026
Merged

Commands: Use --wpds-cursor-control design token#77358
mirka merged 3 commits into
WordPress:trunkfrom
hbhalodia:fix/issue-76221-commands

Conversation

@hbhalodia
Copy link
Copy Markdown
Contributor

What?

Part of: #76221

Why?

  • Update the instances of cursor: pointer to use the desgin token for better maintainence.

How?

  • Removed cursor: pointer and used cursor: var(--wpds-cursor-control);

Testing Instructions

  1. Open any post/page.
  2. Open commands pallete.
  3. Inspect the command item and check the style, you will notice it does not have hardcoded pointer value, but uses --wpds-cursor-control design token.

Testing Instructions for Keyboard

  • None

Use of AI Tools

  • None

@hbhalodia hbhalodia requested review from Copilot and mirka April 15, 2026 05:56
@hbhalodia hbhalodia self-assigned this Apr 15, 2026
@hbhalodia hbhalodia added [Type] Code Quality Issues or PRs that relate to code quality [Package] Commands /packages/commands labels Apr 15, 2026
@hbhalodia hbhalodia marked this pull request as ready for review April 15, 2026 05:56
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 15, 2026

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: hbhalodia <hbhalodia@git.wordpress.org>
Co-authored-by: mirka <0mirka00@git.wordpress.org>

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates @wordpress/commands styles to align with the WPDS cursor design token approach described in #76221, enabling a global switch for interactive control cursors.

Changes:

  • Replaced cursor: pointer with cursor: var(--wpds-cursor-control) for command palette items.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

🚀

@mirka mirka enabled auto-merge (squash) April 15, 2026 13:13
@mirka mirka merged commit 4765c29 into WordPress:trunk Apr 15, 2026
40 checks passed
@github-actions github-actions Bot added this to the Gutenberg 23.1 milestone Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Commands /packages/commands [Type] Code Quality Issues or PRs that relate to code quality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants