[WB-1998.3] Migrate color to semanticColor in math-input#3250
[WB-1998.3] Migrate color to semanticColor in math-input#3250jandrade wants to merge 3 commits intowb-color2sc-2from
Conversation
🗄️ Schema Change: No Changes ✅ |
🛠️ Item Splitting: No Changes ✅ |
|
Size Change: +61 B (+0.01%) Total Size: 485 kB
ℹ️ View Unchanged
|
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (335f5c7) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR3250If you are working in Khan Academy's frontend, you can run the below command. ./dev/tools/bump_perseus_version.ts -t PR3250If you are working in Khan Academy's webapp, you can run the below command. ./dev/tools/bump_perseus_version.js -t PR3250 |
…lor` tokens instead of the now deprecated WB color tokens.
| position: "relative", | ||
| borderStyle: "solid", | ||
| borderColor: color.offBlack50, | ||
| borderColor: semanticColor.core.border.neutral.default, |
There was a problem hiding this comment.
| ...(showInputFocusStyle | ||
| ? { | ||
| borderColor: color.blue, | ||
| borderColor: |
There was a problem hiding this comment.
| borderColor: semanticColor.core.border.neutral.default, | ||
| borderRadius: 4, | ||
| color: color.offBlack, | ||
| color: semanticColor.core.foreground.neutral.strong, |
There was a problem hiding this comment.
| width: "100%", | ||
| marginBottom: "1em", | ||
| border: `1px solid ${color.offBlack16}`, | ||
| border: `1px solid ${semanticColor.core.border.neutral.subtle}`, |
There was a problem hiding this comment.
| justifyContent: "center", | ||
| alignItems: "center", | ||
| boxShadow: `0px 1px 0px ${color.offBlack32}`, | ||
| boxShadow: `0px 1px 0px ${semanticColor.core.shadow.chonky.neutral.subtle}`, |
There was a problem hiding this comment.
note: I used a chonky shadow to match the Design specs: https://www.figma.com/design/HlLQJqNeMTLenuDfkyzYzE/Perseus-Widgets?node-id=2433-142&t=cCvcHm2aRBMF3G6d-4
https://khanacademy.atlassian.net/wiki/spaces/WB/pages/4049666283/Core#Neutral.3
Summary:
Migrates the Aphrodite styles in
math-inputto the newsemanticColortokens.This PR is part of the larger effort to migrate the Perseus codebase to use the
new
semanticColortokens.Documents for reference:
Implementation plan:
Issue: https://khanacademy.atlassian.net/browse/WB-1998
Test plan:
Verify that the components in math-input look correct.