feat: Update input components to use new v4 tokens#3719
Merged
alanbsmith merged 65 commits intoWorkday:prerelease/majorfrom Feb 11, 2026
Merged
feat: Update input components to use new v4 tokens#3719alanbsmith merged 65 commits intoWorkday:prerelease/majorfrom
alanbsmith merged 65 commits intoWorkday:prerelease/majorfrom
Conversation
Workday/canvas-kit
|
||||||||||||||||||||||||||||||||||||||||
| Project |
Workday/canvas-kit
|
| Branch Review |
mc-refactor-inputs-v4
|
| Run status |
|
| Run duration | 02m 15s |
| Commit |
|
| Committer | Manuel Carrera |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
15
|
|
|
0
|
|
|
802
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
19.5%
|
|
|---|---|
|
|
1517
|
|
|
365
|
Accessibility
99.41%
|
|
|---|---|
|
|
5 critical
5 serious
0 moderate
2 minor
|
|
|
72
|
added 18 commits
January 27, 2026 07:09
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates input components to use v4 tokens from @workday/canvas-tokens-web, upgrading from version 4.0.2 to 4.0.4. The changes implement a forward-compatibility strategy using cssVar with fallbacks to v3 tokens, allowing components to work with both token versions during the transition period.
Changes:
- Upgraded
@workday/canvas-tokens-webfrom 4.0.2 to 4.0.4 across all package.json files - Updated input components (TextInput, TextArea, Checkbox, Radio, FormField) to use new v4 token names with v3 fallbacks
- Modified disabled state styling to use opacity-based approach instead of specific color changes
- Added width constraints and positioning improvements to form field components
Reviewed changes
Copilot reviewed 34 out of 35 changed files in this pull request and generated 16 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updated canvas-tokens-web dependency lockfile entry to version 4.0.4 |
| .yarnrc | CRITICAL: Disabled frozen lockfile requirement |
| package.json | Updated canvas-tokens-web to 4.0.4 in root package |
| modules/styling/package.json | Updated canvas-tokens-web dependency to 4.0.4 |
| modules/styling-transform/package.json | Updated canvas-tokens-web dependency to 4.0.4 |
| modules/react/package.json | Updated canvas-tokens-web dependency to 4.0.4 |
| modules/preview-react/package.json | Updated canvas-tokens-web dependency to 4.0.4 |
| modules/labs-react/package.json | Updated canvas-tokens-web dependency to 4.0.4 |
| modules/docs/package.json | Updated canvas-tokens-web dependency to 4.0.4 |
| utils/storybook/CanvasProviderDecorator.tsx | Added global padding to all Storybook stories |
| modules/react/text-input/stories/examples/Disabled.tsx | Changed default value in example to show disabled state better |
| modules/react/text-input/stories/TextInput.mdx | Removed unused InformationHighlight import |
| modules/react/text-input/lib/TextInput.tsx | Updated to v4 tokens with fallbacks; changed disabled state to opacity-only; removed minWidth |
| modules/react/text-input/lib/InputGroup.tsx | Updated size tokens with v4/v3 fallbacks |
| modules/react/text-area/stories/TextArea.mdx | Removed unused InformationHighlight import |
| modules/react/text-area/lib/TextArea.tsx | Updated minHeight token with v4/v3 fallback; removed minWidth |
| modules/react/form-field/lib/formFieldStencil.ts | Added width variable and default 280px width; updated spacing tokens |
| modules/react/form-field/lib/FormFieldLabel.tsx | Updated tokens with fallbacks; removed minWidth |
| modules/react/form-field/lib/FormFieldHint.tsx | Updated tokens with v4/v3 fallbacks |
| modules/react/form-field/lib/FormFieldGroupList.tsx | Updated tokens with v4/v3 fallbacks for error states |
| modules/react/form-field/lib/FormFieldGroupLabel.tsx | Updated tokens with fallbacks; removed minWidth |
| modules/react/form-field/lib/FormFieldField.tsx | Updated gap token; added width: 100% |
| modules/react/form-field/lib/FormFieldContainer.tsx | Updated gap token; added width: 100% |
| modules/react/common/lib/forwardFitTokens.ts | Removed shape tokens (xs, sm, md); added color and size mappings for forward compatibility |
| modules/react/checkbox/lib/CheckboxRipple.tsx | Updated to use v4 size and shape tokens; added parts for data-part selector |
| modules/react/checkbox/lib/CheckboxInput.tsx | Comprehensive update to use data-part selectors and v4 tokens with fallbacks |
| modules/react/checkbox/lib/CheckboxContainer.tsx | Updated size tokens; added position: relative to inner div |
| modules/react/checkbox/lib/CheckboxCheck.tsx | Added variant support to indeterminate box; updated to pass variant to CheckBackground |
| modules/react/checkbox/lib/CheckBackground.tsx | Added variant modifier and parts for data-part selector; updated tokens |
| modules/react/button/lib/ToolbarIconButton.tsx | Changed from forwardFitTokens.system.shape.xs to system.shape.x1 |
| modules/react/button/lib/ToolbarDropdownButton.tsx | Changed from forwardFitTokens.system.shape.xs to system.shape.x1 |
| modules/preview-react/radio/lib/StyledRadioButton.tsx | CRITICAL BUG: Uses undefined checkPart parameter; updated tokens and disabled state handling |
| modules/preview-react/radio/lib/RadioText.tsx | Simplified variant handling; updated color tokens |
| modules/preview-react/radio/lib/RadioLabel.tsx | Updated size and gap tokens with fallbacks |
| modules/preview-react/radio/lib/RadioGroup.tsx | Updated tokens for error states with v4/v3 fallbacks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
mannycarrera4
commented
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
| }, | ||
| '&:has(:disabled, .disabled)': { | ||
| [caretPart]: { | ||
| // TODO (forwardfit token): Revisit token, using v4 token and fallback to v3 token |
Contributor
There was a problem hiding this comment.
Suggested change
| // TODO (forwardfit token): Revisit token, using v4 token and fallback to v3 token |
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
reviewed
Feb 11, 2026
RayRedGoose
approved these changes
Feb 11, 2026
Contributor
RayRedGoose
left a comment
There was a problem hiding this comment.
almost here, but if visual changes are okay it looks good to go
Co-authored-by: Raisa Primerova <48605821+RayRedGoose@users.noreply.github.com>
…ra4/canvas-kit into mc-refactor-inputs-v4
Co-authored-by: Raisa Primerova <48605821+RayRedGoose@users.noreply.github.com>
10 tasks
10 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes: #3590
Update Inputs to use v4 tokens: TextInput, FormField, Radio (Preview), TextArea, Checkbox
Release Category
Components
Release Note
Update our inputs to use new tokens.
Checklist
ready for reviewhas been added to PRFor the Reviewer
Where Should the Reviewer Start?
Areas for Feedback? (optional)
Testing Manually
Screenshots or GIFs (if applicable)
Thank You Gif (optional)