Skip to content

Conversation

@mannycarrera4
Copy link
Contributor

Summary

Update alpha again, this should fix some breaking changes i was seeing

Release Category

Components


Checklist

For the Reviewer

  • PR title is short and descriptive
  • PR summary describes the change (Fixes/Resolves linked correctly)
  • PR Release Notes describes additional information useful to call out in a release message or removed if not applicable
  • Breaking Changes provides useful information to upgrade to this code or removed if not applicable

Where Should the Reviewer Start?

Areas for Feedback? (optional)

  • Code
  • Documentation
  • Testing
  • Codemods

Testing Manually

Screenshots or GIFs (if applicable)

Thank You Gif (optional)

@RayRedGoose
Copy link
Contributor

@copilot review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the @workday/canvas-tokens-web package from version 4.0.0-alpha.8 to 4.0.0-alpha.11 to address breaking changes in the tokens API. The update includes fixing token path references that changed in the new alpha version.

Changes:

  • Upgraded @workday/canvas-tokens-web dependency from 4.0.0-alpha.8 to 4.0.0-alpha.11 across all packages
  • Updated token references from deprecated paths (e.g., system.color.brand.fg.primarysystem.color.fg.primary)
  • Fixed token references that changed structure (e.g., system.color.border.infosystem.color.border.info.default, system.color.focus.inversesystem.color.border.inverse.default)
  • Updated forward compatibility token mapping for shape tokens

Reviewed changes

Copilot reviewed 13 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
package.json Updated root package dependency to alpha.11
yarn.lock Updated lockfile with new package version and integrity hash
modules/styling/package.json Updated styling module dependency
modules/styling-transform/package.json Updated styling-transform module dependency
modules/react/package.json Updated react module dependency
modules/preview-react/package.json Updated preview-react module dependency
modules/labs-react/package.json Updated labs-react module dependency
modules/docs/package.json Updated docs module dependency
modules/react/loading-dots/stories/examples/CustomColorAndAnimation.tsx Fixed token path from system.color.brand.fg.primary.default to system.color.fg.primary.default
modules/react/information-highlight/lib/InformationHighlight.tsx Added .default suffix to system.color.border.info references
modules/react/icon/stories/stories.visualTesting.tsx Fixed token paths from system.color.brand.fg.primary to system.color.fg.primary
modules/react/icon/stories/Icons.stories.tsx Fixed token paths and contains debug text "foo"
modules/react/common/lib/forwardFitTokens.ts Changed forward compatibility mapping from system.shape.xs to system.shape.sm
modules/react/button/lib/BaseButton.tsx Fixed token path from system.color.focus.inverse to system.color.border.inverse.default

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

*/
export const forwardFitTokens = {
system: {
shape: {
Copy link

Copilot AI Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The forward compatibility token mapping for 'xs' now references 'system.shape.sm' instead of 'system.shape.xs'. This appears intentional due to the alpha token changes, but verify that this change is correct. If 'system.shape.xs' no longer exists in alpha.11, consider adding a comment explaining this forward compatibility mapping change.

Suggested change
shape: {
shape: {
// Note: system.shape.xs was removed in alpha.11; xs now forwards to sm with x1 as fallback.

Copilot uses AI. Check for mistakes.
@cypress
Copy link

cypress bot commented Jan 16, 2026

Workday/canvas-kit    Run #10068

Run Properties:  status check failed Failed #10068  •  git commit 49efcfcbcf ℹ️: Merge 791a63a98d8c1d9ed722864d37ddc12a9a34ed7d into 242f98695ac4f1ab8ff43cf6eb8a...
Project Workday/canvas-kit
Branch Review mc-update-tokens-alpha-latest
Run status status check failed Failed #10068
Run duration 02m 26s
Commit git commit 49efcfcbcf ℹ️: Merge 791a63a98d8c1d9ed722864d37ddc12a9a34ed7d into 242f98695ac4f1ab8ff43cf6eb8a...
Committer Manuel Carrera
View all properties for this run ↗︎

Test results
Tests that failed  Failures 9
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 549
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  18.99%
  Untested elements 1420  
  Tested elements 330  
Accessibility  98.39%
  Failed rules  5 critical   4 serious   0 moderate   2 minor
  Failed elements 70  

Tests for review

Failed  Modal.spec.tsx • 2 failed tests

View Output

Test Artifacts
given the [Testing/Popups/Modal, With Radio buttons] story is rendered > should not have any axe errors Test Replay Screenshots
given the [Testing/Popups/Modal, With Radio buttons] story is rendered > test trap focus > should trap focus inside the modal element Test Replay Screenshots
Failed  Popup.spec.tsx • 1 failed test

View Output

Test Artifacts
... > should not have any axe errors Test Replay Screenshots
Failed  Menu.spec.tsx • 3 failed tests

View Output

Test Artifacts
Menu > given the [Components/Popups/Menu, Basic] story is rendered > should pass axe checks Test Replay Screenshots
... > when the tab key is pressed > should have aria-expanded set to false Test Replay Screenshots
... > when the tab key is pressed > should not show a menu Test Replay Screenshots
Failed  Tooltip.spec.tsx • 3 failed tests

View Output

Test Artifacts
Tooltip > given the DescriptionType example is rendered > should not have any axe-core errors Test Replay Screenshots
... > should not have any axe-core errors Test Replay Screenshots
Tooltip > given the Ellipsis example is rendered > should not have any axe-core errors Test Replay Screenshots
Failed  ActionBar.spec.tsx • 0 failed tests

View Output

Test Artifacts

The first 5 failed specs are shown, see all 25 specs in Cypress Cloud.

Flakiness  cypress/component/Modal.spec.tsx • 1 flaky test

View Output

Test Artifacts
... > should trap focus inside the modal element Test Replay Screenshots

color={system.color.static.green.default}
colorHover={system.color.static.green.stronger}
/>
foo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want this in here?

icon={activityStreamIcon}
accent={system.color.brand.fg.primary.default}
fill={system.color.brand.fg.primary.default}
accent={system.color.fg.primary.default}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we updating this to not be deprecated tokens? Wondering if this should be system.color.brand.fg.primary.default and same for below.

props: {
fill: system.color.brand.fg.primary.default,
fillHover: system.color.brand.fg.primary.strong,
fill: system.color.fg.primary.default,
Copy link
Contributor

@sheelah sheelah Jan 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for this file - should this color be mapping to system.color.brand.fg.primary.default?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants