Repository navigation
Conversation
Modal.stories: background-primary → surface-default, text-disabled → text-subtle (disabled text sits on the surface, per PR 34), and the beige placeholder boxes → surface-sunken. Menu.stories and Tabs.stories: palette primitives (hyper, navy, white, yellow) → roles. Flyout had no story or test edits on the stack. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
LinKCoding
left a comment
There was a problem hiding this comment.
When running the tests
npx jest still has some of the "wrap in act()warnings that can be addressed laternpx vitest` shows some warnings too, but I haven't seen these before:
In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
This will cause a hydration error.%s table
^ Maybe something to ticket out
There are two syntax errors that need fixing though, both these have duplicate skillsoftTheme being imported:
packages/.storybook/components/Elements/DocsContainer.tsx
packages/.storybook/theming/GamutThemeProvider.tsx
After fixing that, SB loaded just fine (in one session I got a "max load" error and the server cut off, but I haven't seen that again)
|
Superseded: this commit is now in the full preview, #73. |
Summary
Follow-up to #73 (the color stack preview). Ports the remaining story edits from the color stack that #73 didn't carry over, so the story files use the role names and no palette primitives.
Base is
cass-gmt-1825-color-preview-rebuild(#73), notmain:maindoesn't have the role tokens yet.What changed
background-primary→surface-default;text-disabled→text-subtle(three places); beige placeholder boxes →surface-sunken.hypertext →action-primary;navyfill →surface-sunken;whitebackground →surface-raised.yellowbackground →surface-sunken.Already on #73, no change here
Alert/Alert.test.tsx: the color tests (ink per variant, floating edge, inline borderless).Modals/Dialog.stories.tsx:text-subtlefor disabled text.Modals/Modal.test.tsx: rewritten test file.Tips/InfoTip/InfoTip.stories.tsx:text-subtleandsurface-default.Not changed
Testing
npx jestfor Alert, Modals, Menu: 39 tests pass.npx vitest run --project=storybookfor the six components' stories (Alert, Dialog, Modal, Menu, MenuItem, Tabs, Flyout, InfoTip): 89 tests pass.🤖 Generated with Claude Code