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. |
There was a problem hiding this comment.
Pull request overview
Updates FormTokenField’s disabled appearance so it visually aligns with other disabled form controls in @wordpress/components.
Changes:
- Adjusts disabled container background/border colors and normalizes cursor/opacity.
- Updates disabled token pill (text/remove button) colors to blend with the disabled container.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Size Change: +214 B (0%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in 53d9bc2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24196354457
|
|
Edit: in talking to Lena, we agree to ship this small fixes as an interim fix. The goal is to replace all wordpress/components with wordpress/ui components — and update the disable styles when that happens. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@ciampo anything else to address? |
Follow-up to #77090
What?
Fix disabled styles for the
FormTokenFieldcomponent to be consistent with other form controls (InputControl, SelectControl, TextareaControl, etc.).Why?
When a
FormTokenFieldis disabled, its background and border colors don't match the disabled appearance of other form controls.How?
Updated the disabled styles in
style.scssfor theFormTokenField:.is-disabled): Changed background from$gray-300to$gray-100and border from$gray-300to$gray-400to match the standard disabled color tokens (COLORS.ui.backgroundDisabled/COLORS.ui.borderDisabled). Addedcursor: defaultandopacity: 1..is-disabled .components-form-token-field__token-textand.components-form-token-field__remove-token): Set background to$gray-100(matching the container) and text color to$gray-600(COLORS.ui.textDisabled) so the pills blend with the disabled container.Testing Instructions
Use of AI Tools
This PR was authored with assistance from Claude Code (Claude Opus 4.6). All changes were reviewed and validated by the author.