Repository navigation
Conversation
…ressBar label Behavior design's component map (sandbox df33b47) adds on top of the role swap in #54: - List: an `isSelected` row state draws the `state-selected` veil over the row's fill, stacked under the hover veil; DataList's selected rows set it. Table rows are `surface-raised` instead of transparent. - ProgressBar: at large and xl, a second copy of the label sits on the track in `text-default` and the bar clips its `text-inverse` copy, so a label crossing the bar edge reads on both sides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into cass-gmt-1825-color-behavior
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…into cass-gmt-1825-color-behavior # Conflicts: # .changeset/color-system-brands.md # packages/gamut-styles/src/themes/__tests__/__snapshots__/theme.test.ts.snap # packages/gamut-styles/src/themes/__tests__/theme.test.ts
Roboto 500 and 700 share one bold file, so the preload list had two links with the same key (the file URL), and React warned about duplicate keys. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
The skill triaged scope-swap only. Add a color-roles section: the dry-run and real-run steps, what the warnings and color-roles: comments mean and what to do for each, the checks before calling it done, and what not to do. The description names the preset so the skill triggers on color-name work. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 6f0e3de)
…on and cover every preset The skill covered scope-swap only. It's now gamut-migration: a presets table, one workflow for all presets, a section per preset (scope-swap, color-roles), and a section on documenting a new preset. Renames the changeset to match. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit f5bf30b)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 15c7699)
…section Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 80522ce)
…ion skill - next-config: removing esmExternals: false is necessary but not always enough. Build each app and fix the routes that still fail at prerender. - CI: the job that runs sync-gamut-deps fails too, so change it with the script. - resolutions: yarn why can list two lock locators after a pin, with one copy installed. Check node_modules. - tsconfig-dom: the codemod warns only where gamut is imported. - Missing peers: @vidstack/react, react-player and stylis, with the range to add by hand. - color-roles: a palette name can map to different roles by slot, so use the context in the comment. Keep each app's theme, since the choice changes the spacing scale. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit a0f18dc)
…gration skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit bb684b9)
…igration skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit b35dc09)
… skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 552d148)
…ser in the gamut-migration skill Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 7d92c95)
…ate-stylis symptom Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 0dc47cf)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> (cherry picked from commit 53cce61)
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Replaces this branch's tree with the color stack as it now stands: the site branch (#67, which includes #63, #59, #54, #66, #58, #52 and #50, each merged with main through 45586df), plus the codemod branch (#53). Static styles (#69) is still out, as before. The preview's earlier head is the parent. This commit only moves the tree forward, so nothing is rewritten. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
# Conflicts: # packages/gamut/src/Anchor/Anchor.stories.tsx # packages/gamut/src/Disclosure/Disclosure.stories.tsx # packages/gamut/src/Form/inputs/SelectDropdown/SelectDropdown.stories.tsx # packages/gamut/src/Tips/PreviewTip/PreviewTip.stories.tsx
@skillsoft/eslint-plugin-gamut
@skillsoft/gamut
@skillsoft/gamut-agent-tools
@skillsoft/gamut-brand
@skillsoft/gamut-codemods
@skillsoft/gamut-icons
@skillsoft/gamut-illustrations
@skillsoft/gamut-patterns
@skillsoft/gamut-styles
@skillsoft/gamut-tests
@skillsoft/variance
commit: |
…pies The label is drawn on the track and on the bar, both aria-hidden. The story checks both copies rather than one, so it matches the component. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## cass-gmt-1825-color-components #63 +/- ##
==================================================================
+ Coverage 82.94% 84.36% +1.41%
==================================================================
Files 490 491 +1
Lines 40141 40259 +118
Branches 1840 1958 +118
==================================================================
+ Hits 33296 33964 +668
+ Misses 6843 6294 -549
+ Partials 2 1 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Builds and tests all pass!
--
For DataTable (both SKS + CC)
In the "loading rows" story, in both light/dark, every other rows' bands' shimmer blends into the background (i.e. are the same color) upon load. You can see the shimmer once it animates though.
Is that intentional?
List's empty message looks off:
Should there be some kind of background for the text to rest atop of?
For Progressbar, I know it's not specific to the code changed in this PR, but the variant values (and therefore stories) aren't really aptly named anymore since the bars are all black/white. Esp the blue/yellow variants
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…and ProgressBar The jsdom setup already registers the Emotion matchers for every test. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…-1825-color-components)
Adds the component behavior design's component map asks for that #54's role swap didn't cover. Merge after #54.
What changes
state-selectedveil over its own fill, and the hover veil stacks on top when it's hovered. Today a selected row only shows its checkbox. DataList's selected rows set the newisSelectedrow state, andListRowaccepts it directly.surface-raisedwithsurface-sunkenstripes, instead of transparent with sunken stripes.largeandxl, the label is two-tone. It'stext-inversewhere it sits on the bar andtext-defaultwhere it runs onto the track. A second copy sits on the track under the bar, and the bar clips its own copy, so a short bar's label doesn't vanish into the track.Design's map (gamut-styles
colorSystem/migration.ts, from sandboxdf33b47):text-inversewhere it sits on the bar,text-defaultwhere it sits on the track."Testing
tsconfig.lib.jsontypechecks clean.🤖 Generated with Claude Code