Theme: Change default control cursor to pointer#76762
Conversation
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +1 B (0%) Total Size: 7.66 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 695154d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23438817264
|
|
|
||
| > [!NOTE] | ||
| > `caution` and `warning` represent two escalation levels of non-error severity. | ||
| > [!NOTE] > `caution` and `warning` represent two escalation levels of non-error severity. |
There was a problem hiding this comment.
This breaks the formatting when viewed on GitHub:
But it's already pretty broken on the Developer Site copy of this document:
Maybe we should just revert it to a standard paragraph.
What?
Changes the default value of the
--wpds-cursor-controldesign token fromdefaulttopointer.Why?
As
@wordpress/uicomponents start appearing alongside@wordpress/componentsin the editor, usingdefaultcursors on the new components creates an inconsistent experience when legacy components still usepointercursors. Additionally, many@wordpress/componentslack sufficient hover states to compensate for losing thepointeraffordance (discussion).Rather than rushing the shift to
defaultcursors, the agreed approach is to keeppointeras the default while the cursor token continues to be propagated across packages. The global switch todefaultcan happen once hover states on existing componentry are in place.Testing Instructions
@wordpress/uicomponent story that renders interactive controls (e.g. Button, Toggle).pointercursor by default across all theme settings.defaultand confirm the override applies correctly.Use of AI Tools
Cursor agent (Claude) was used to make the token change, regenerate prebuilt files, and update documentation.