Storybook: Fix "Default" cursor option in theming toolbar#77037
Conversation
|
Size Change: 0 B Total Size: 7.74 MB ℹ️ View Unchanged
|
|
Flaky tests detected in 44ab5c4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23954647935
|
There was a problem hiding this comment.
I suppose this likely worked before but regressed when we changed the default in #76762 ? In any case, it makes sense that this setting should set the value explicitly 👍
I wondered if the same would be true of the other "Default" settings here (COLOR_OPTIONS, DENSITY_OPTIONS), but I suppose there's a conflation of "default" as-in "what happens if you don't specify a value" and "default" as in cursor: default, where in the latter case we may default to the non-cursor: default styling 😅 🤯 (#71316) That being said, I think explicit 'default' density can work, and maybe we'd want the color option to be explicitly "Light".
|
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. |
Right, it's a bit confusing here but I don't think there's an easy way out, fundamentally 😅 Except we can probably improve the theming toolbar UI so there's a difference between |
Co-authored-by: mirka <0mirka00@git.wordpress.org> Co-authored-by: aduth <aduth@git.wordpress.org>
What?
Fixes a bug in the Storybook theming toolbar where the "Default" cursor option wasn't working properly.
How?
Sets the Default option’s
idto'default'so the global and decorator passcursor={{ control: 'default' }}as intended.Testing Instructions
npm run storybook:devand go to a Design System component story.var(--wpds-cursor-control)should use the normal arrow cursor.Use of AI Tools
Composer 2