Select: Fix disabled cursor styles#78112
Conversation
|
Size Change: 0 B Total Size: 7.92 MB ℹ️ View Unchanged
|
|
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. |
|
Flaky tests detected in 5c384d4. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/25582970891
|
What?
Fixes cursor styles for disabled
@wordpress/uiselect controls so disabled triggers and popup items do not use the interactive control cursor.Also fixes it for disabled items in
Autocomplete.Why?
Disabled controls should not visually imply that they can be interacted with.
How?
Applies
cursor: var(--wpds-cursor-control)only when the select trigger or popup item does not havedata-disabled.Testing Instructions
@wordpress/ui.Design System/Components/Form/Primitives/Select.Disabledstory and confirm the disabled trigger does not show the interactive control cursor.With Disabled Itemstory, open the select, and confirm the disabled item does not show the interactive control cursor while enabled items still do.