Skip to content

chore(deps): bump styled-components from 5.3.3 to 6.6.0 - #53

Merged
shairevivo merged 1 commit into
mainfrom
dependabot/npm_and_yarn/styled-components-6.6.0
Nov 10, 2026
Merged

shairevivo merged 1 commit into
mainfrom
dependabot/npm_and_yarn/styled-components-6.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Bumps styled-components from 5.3.3 to 6.6.0.

Release notes

Sourced from styled-components's releases.

styled-components@6.6.0

Minor Changes

  • 7ce6aea: Added a StyledComponent<Target, Props> type for annotating explicitly-typed styled component exports.

    Packages that emit their own declaration files, including any project using isolatedDeclarations, must annotate every exported styled component, and there was no public type for it: consumers reached into internal paths or hand-assembled one that dropped members like a wrapped component's hoisted statics.

    StyledComponent is exported from the web and native entries. Name the target and props as you passed them to styled:

    import styled, { type StyledComponent } from 'styled-components';
    export const Card: StyledComponent<'div', { $active?: boolean }> = styled.div<{
    $active?: boolean;
    }>...;
    export const CloseButton: StyledComponent<typeof IconButton> = styled(IconButton)...;

    It resolves to the exact type styled(Target)<Props> produces, so the annotation is not lossy.

Patch Changes

  • 7afbd11: Fixed attrs no longer applying its value when a prop was explicitly passed as undefined (the 6.3.12 to 6.5.x behavior). styled.button.attrs(({ type = 'button', ...rest }) => ({ type, ...rest })) rendered without type="button" when the caller passed type={undefined}, and an object-form default such as .attrs({ type: 'button' }) was lost the same way, including through a wrapper component that spreads its own props over the styled component. attrs now always wins for the keys it returns, matching every other case where a prop is passed alongside attrs.

    Also fixed: a prop passed explicitly as undefined (and not overridden by attrs) is now forwarded to a wrapped component so that component can fall back to its own default, the pattern MUI's ButtonBase relies on (for example <Root role="button" {...props} />). Wrapped components have dropped this prop entirely since v6.0, so a component that checks 'role' in props or merges {...defaults, ...props} to detect an explicitly-passed prop may see and behave differently now that the key is present again. This only applies when wrapping another component; a DOM tag such as styled.div still drops the undefined prop entirely, since browsers have no notion of an "undefined" attribute.

    If you were relying on an explicit undefined to clear an attrs default, use the function form and check for the prop's presence instead:

    styled.a.attrs(props => ('rel' in props ? {} : { rel: 'noopener' }))``;

    Passing rel={undefined} now renders no rel attribute, and omitting the prop renders rel="noopener".

    React Native already forwarded an explicit undefined prop to a wrapped component; it now also matches web in never forwarding an undefined that attrs itself produced.

  • 209317c: Rendering styled-components on the server with the edge runtime (for example export const runtime = 'edge' in a Next.js route) now fails with a clear message that names the fix: use the Node.js runtime for routes that render styled-components. Previously the same setup ended in an obscure crash, either at next build or on the first request.

  • 3de03c2: Type-checking is faster when you annotate exported styled components with an explicit type, the pattern that packages emitting their own declaration files (including any project using isolatedDeclarations) rely on. The improvement is largest in codebases that annotate many components built on intrinsic tags such as styled.div, styled.span, and styled.button, and wrappers over polymorphic components whose props are a union.

    Nothing about the styled component's type changes for your code: props, defaultProps, propTypes, ref forwarding, and as polymorphism all behave exactly as before. This is purely a type-check speedup.

  • 7afbd11: Fixed a typo in the useTheme error message's example code (a misspelled component name in error 18), so the copy-pasted example compiles as written.

  • 7afbd11: Fixed global styles from createGlobalStyle disappearing in React Server Components: a global style rendered in a loading state (a React <Suspense> fallback) and again once the real content streamed in could vanish entirely once the fallback was replaced. The same loss could happen across a client-side navigation when a global style was rendered by both a layout and one of its pages, and the layout's copy never re-rendered.

    Each server-rendered instance of a global style now carries its own styles, so a global style shown in more than one place in a request always survives, whether the page reveals streamed content or the user navigates to a sibling route.

  • 52c5f6e: Fixed a crash ("Rendered fewer hooks than expected") and a related stale-style bug for components that call a React hook, or read any value outside their props and theme, from inside a style interpolation. This affected @mui/styled-engine-sc with MUI X DataGrid, which calls hooks within an interpolation, and was a regression introduced in 6.4.0.

    Style interpolations now run on every render, so a hook called inside one runs consistently and a value read inside one always reflects its current state.

... (truncated)

Commits
  • 689ce25 Version Packages (6.x) (#5800)
  • 209317c fix(rsc): send repeated server-component styles once, and explain edge-runtim...
  • 7afbd11 6.x maintenance: attrs and undefined props, RSC global styles, types on older...
  • 1c0e309 fix: emit RSC styles per instance so they survive Suspense reveals (#5808)
  • 52c5f6e fix: run style interpolations on every render (#5788) (#5809)
  • 3de03c2 perf(types): faster type-checking for annotated styled component exports (#5801)
  • 7ce6aea feat(types): add StyledComponent for explicit export annotations (#5799)
  • 1593023 Version Packages (6.x) (#5798)
  • 3470387 fix: support template index signatures (#5797)
  • 8ebf40a Version Packages (6.x) (#5795)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for styled-components since your current version.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 9, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/styled-components-6.6.0 branch from b79a9f9 to 2c12b99 Compare November 10, 2026 09:13
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:14 AM UTC · Completed 9:23 AM UTC

Commit: 2c12b99 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.25

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Nov 10, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored semver-major bump of styled-components (5.3.3 to 6.6.0) touching only the two dependency files; Tier 1 signals are unchanged from the prior assessment (same file count, dependency files changed, no protected or security-sensitive paths, bot author), and Tier 2 reconfirms the 2.29 composite, yielding the same composite (0.62x1.75 + 0.38x2.29 = 1.96, rounded to 2).

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Bot-authored semver-major bump of styled-components (5.3.3 to 6.6.0) touching only the two dependency files; breaking-change risk from the major version jump is offset by bot authorship and no protected or security-sensitive paths, yielding a moderate composite (0.62x1.75 + 0.38x2.29 = 1.96, rounded to 2).

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Review

Findings

High

  • [api-contract] src/components/Header/style.ts:1 — Still present at PR head (src/ is unchanged by this PR). Every style module imports styled from 'styled-components/macro' (Header, Github/GithubCorner, Cart, Cart/CartProducts, Cart/CartProducts/CartProduct, App, Loader, Products, Products/Product, Filter style.ts files). styled-components v6 removed the styled-components/macro entry point. The PR-head lockfile drops babel-plugin-styled-components, and v6.6.0 depends only on @emotion/is-prop-valid, @types/stylis, css-to-react-native, csstype and stylis. CRA's babel-plugin-macros will fail to resolve the macro, which should break npm run build, npm start and every Jest suite that renders these components. babel-plugin-macros.config.js still configures styledComponents for the removed macro. None of the repository's workflows runs the tests or the build (security.yml only runs npm audit --package-lock-only), so nothing gates this. The v6 package contents could not be inspected in the sandbox; the removal claim rests on the v6 migration notes and the lockfile changes.
    Remediation: Before merging, replace every import styled from 'styled-components/macro' with import styled from 'styled-components' (or with the repo's typed wrapper commons/style/styled-components). Remove the styledComponents block from babel-plugin-macros.config.js. Then run npm test and npm run build locally, since CI does not.

  • [api-contract] src/commons/style/styled-components.ts:2 — Still present at PR head. import { ThemedStyledComponentsModule } from 'styled-components' uses a type that only existed in @types/styled-components v5. v6 ships its own types and has no ThemedStyledComponentsModule. The declare module 'styled-components' augmentation in src/commons/style/index.d.ts (lines 2-16) declares a new ThemedStyledComponentsModule<T> with only createGlobalStyle. So destructuring default, css, keyframes and ThemeProvider through the cast fails type-checking. index.d.ts also uses SimpleInterpolation (a v5 @types name) and re-declares createGlobalStyle with a v5-style signature. Runtime values still exist in v6; the break is in type-checking, which is expected to fail the CRA build's type-check step.
    Remediation: Delete src/commons/style/index.d.ts. Type the theme the v6 way: declare module 'styled-components' { export interface DefaultTheme extends StyleClosetTheme {} }, then re-export styled, css, createGlobalStyle, keyframes and ThemeProvider directly from 'styled-components'. Check with npx tsc --noEmit.

Medium / Low

  • [api-contract] (medium) src/components/Cart/Cart.tsx:28 — Still present at PR head. v6 no longer filters non-HTML props for styled.<tag> components (v5 used @emotion/is-prop-valid). <S.Container isOpen={isOpen}> (Cart.tsx:28), <S.CartIcon large> (Cart.tsx:44) and <S.Container ... sku={sku}> (src/components/Products/Product/Product.tsx:56) will now forward isOpen, large and sku to DOM elements. This produces React unknown-prop warnings and stray attributes in the rendered markup. Tests run with --silent and none asserts on console warnings or rendered attributes, so nothing surfaces it.
    Remediation: Convert these to v6 transient props ($isOpen, $large, $sku) in the style interfaces (src/components/Cart/style.ts, src/components/Products/Product/style.ts) and at the call sites. Alternatively, wrap the app in <StyleSheetManager shouldForwardProp={isPropValid}> to restore v5 behaviour.

  • [stale-reference] (low) package.json:77 — Still present at PR head. @types/styled-components: ^5.1.36 remains in devDependencies, but styled-components v6 bundles its own TypeScript definitions. The v5 typings are dead weight and make v5-only type names (ThemedStyledComponentsModule, SimpleInterpolation) look valid.
    Remediation: Remove @types/styled-components from devDependencies and regenerate package-lock.json.


Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJhcGktY29udHJhY3QiLCJmaWxlIjoic3JjL2NvbXBvbmVudHMvSGVhZGVyL3N0eWxlLnRzIiwiaWQiOiJmX2I4ZTJjZmRjOWYxYjAzNWEiLCJsaW5lIjoxLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJoaWdoIiwiY2F0ZWdvcnkiOiJhcGktY29udHJhY3QiLCJmaWxlIjoic3JjL2NvbW1vbnMvc3R5bGUvc3R5bGVkLWNvbXBvbmVudHMudHMiLCJpZCI6ImZfY2JlOTk3YzA2Njc5YWJlYyIsImxpbmUiOjIsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6ImNvcnJlY3RuZXNzIn0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5IjoiYXBpLWNvbnRyYWN0IiwiZmlsZSI6InNyYy9jb21wb25lbnRzL0NhcnQvQ2FydC50c3giLCJpZCI6ImZfZGFiODJhODJkN2I2ODFmMSIsImxpbmUiOjI4LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InN0YWxlLXJlZmVyZW5jZSIsImZpbGUiOiJwYWNrYWdlLmpzb24iLCJpZCI6ImZfYWM3NjJhNjEzNmUyZWE5MCIsImxpbmUiOjc3LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= -->

Review

Findings

High

  • [api-contract] src/components/Header/style.ts:1 — styled-components v6 removed the styled-components/macro entry point, and this PR drops babel-plugin-styled-components from the lockfile. Ten unchanged style.ts files still import from styled-components/macro: Header, GithubCorner, Cart, CartProducts, CartProduct, App, Loader, Products, Product and Filter. As a result, react-scripts build and react-scripts test are expected to fail. The styledComponents block in babel-plugin-macros.config.js also becomes dead config.
    Remediation: Either keep styled-components on 5.x, or migrate by hand: change the imports to styled-components, remove the dead macro config, add a styled-components babel/SWC plugin if you still want display names, and regenerate the affected snapshots.

  • [api-contract] src/commons/style/styled-components.ts:2 — This file casts the module to ThemedStyledComponentsModule<StyleClosetTheme>, a type that only exists in @types/styled-components 5.x. v6 ships its own types, which do not export it, and the local index.d.ts augmentation declares only createGlobalStyle. Destructuring default, css, keyframes and ThemeProvider is therefore expected to fail type-checking and break npm run build.
    Remediation: Re-export directly from styled-components, type the theme by extending DefaultTheme (declare module 'styled-components' { export interface DefaultTheme extends StyleClosetTheme {} }), and rewrite or remove src/commons/style/index.d.ts.

Medium

  • [api-contract] src/components/Cart/Cart.tsx:28 — v6 no longer filters props through @emotion/is-prop-valid by default. As a result, isOpen (Cart.tsx:28), large (Cart.tsx:44) and sku (Products/Product/Product.tsx:56) are passed through to DOM elements. That causes React unknown-prop and non-boolean-attribute warnings and a sku DOM attribute, which changes snapshots.
    Remediation: Use transient props ($isOpen, $large, $sku), or filter them with shouldForwardProp or a StyleSheetManager.

Low

  • [stale-reference] package.json:77 — @types/styled-components ^5.1.36 is still a devDependency. v6 bundles its own types, so this package is ignored and describes the wrong major version.
    Remediation: Remove @types/styled-components as part of the v6 migration.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

fullsend-ai-review[bot]

This comment was marked as outdated.

@shairevivo

Copy link
Copy Markdown
Collaborator

/fs-fix

@fullsend-ai-coder

fullsend-ai-coder Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Finished Fix · ❌ Failure (post-script /home/runner/work/react-shopping-cart/react-shopping-cart/.fullsend/.fullsend-cache/resources/sha256/90f2b0684e13fa7bb35c61dc048c6eddf3fe6792deb7bfa5b93642fa25f6d479/scripts/post-fix.sh fa…) · Started 9:28 AM UTC · Completed 9:36 AM UTC

Commit: 2c12b99 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $1.46

Bumps [styled-components](https://github.com/styled-components/styled-components) from 5.3.3 to 6.6.0.
- [Release notes](https://github.com/styled-components/styled-components/releases)
- [Commits](https://github.com/styled-components/styled-components/compare/v5.3.3...styled-components@6.6.0)

---
updated-dependencies:
- dependency-name: styled-components
  dependency-version: 6.6.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 9:31 AM UTC · Ended 9:42 AM UTC

Commit: 1710475 · View workflow run →

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

⚠️ Post-fix script failed — Push rejected (exit code 1)

The fix agent completed, but the post-fix script failed before finishing.

Workflow run: https://github.com/shairevivo/react-shopping-cart/actions/runs/42790902168

Details:
Could not rebase local 'dependabot/npm_and_yarn/styled-components-6.6.0' onto origin/dependabot/npm_and_yarn/styled-components-6.6.0: the remote branch has commits that conflict with the agent's changes. Resolve the conflict on the PR/MR and re-run /fs-fix.
Rebasing (1/3)
Auto-merging package-lock.json
CONFLICT (content): Merge conflict in package-lock.json
Auto-merging package.json
CONFLICT (content): Merge conflict in package.json
error: could not apply 2c12b99... chore(deps): bump styled-components from 5.3.3 to 6.6.0
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Could not apply 2c12b99... # chore(deps): bump styled-components from 5.3.3 to 6.6.0
Please check the workflow logs for full details and retry with /fs-fix if appropriate.

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Note: The following review comments could not be posted on the diff (GitHub returned 422) and are included here instead:

  • package.json (file-level): Line 77 ·
    [low] stale-reference

Still present at PR head. @types/styled-components: ^5.1.36 remains in devDependencies, but styled-components v6 bundles its own TypeScript definitions. The v5 typings are dead weight and make v5-only type names (ThemedStyledComponentsModule, SimpleInterpolation) look valid.

Suggested fix: Remove @types/styled-components from devDependencies and regenerate package-lock.json.

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

See the review comment for full details.

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:31 AM UTC · Completed 9:42 AM UTC

Commit: 1710475 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $3.79

@shairevivo
shairevivo merged commit 48d8be4 into main Nov 10, 2026
33 of 34 checks passed
@shairevivo
shairevivo deleted the dependabot/npm_and_yarn/styled-components-6.6.0 branch November 10, 2026 09:43
@fullsend-ai-retro

fullsend-ai-retro Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🤖 Finished Retro · ✅ Success · Started 9:44 AM UTC · Completed 9:57 AM UTC

Commit: 1710475 · View workflow run →

Runtime: claude · Model: opus → claude-opus-5-5 · Effort: high · Cost: $4.19

@fullsend-ai-retro

Copy link
Copy Markdown

Retro: PR #53 — styled-components 5.3.3 → 6.6.0 (Dependabot, semver-major)

Timeline (2026-11-10 UTC): Dependabot force-pushed 2c12b99 at 09:13 → review 42788872554 requested changes ($3.25) → human /fs-fix at 09:27 → fix 42790902168 addressed all 4 findings locally (macro imports, DefaultTheme typing, transient props, stale @types; tests 39/39) but Dependabot rebased the branch to 1710475 at 09:30 (main moved when #57 merged) and post-fix's plain git rebase origin/<branch> replayed Dependabot's stale commit, conflicted, and the fix was lost ($1.46) → review 42791256888 re-ran a full first-review pass on the Dependabot-only commit ($3.79), same findings, request-changes → PR merged at 09:43:36 with the findings unaddressed.

Review quality: strong. Both high findings (removed styled-components/macro entry point used by 10 style.ts files; v5-only ThemedStyledComponentsModule) and the medium/low findings are technically correct; no false positives. The review could not build/test (no node_modules/registry) and said so. Main is now likely unbuildable until the migration lands.

Proposals: (1) fullsend-ai/agents — make post-fix replay only the agent's commits when the PR branch was force-pushed mid-run; (2) this repo — complete the styled-components v6 migration on main.

Evidence for existing issues (not re-filed):

Agents resolved from fullsend-ai/agents@v0.54.0 (87a43fcb). Total agent spend on this PR ≈ $8.50.

Proposals filed

shairevivo pushed a commit that referenced this pull request Nov 10, 2026
)

PR #57 bumped typescript to ^7.0.2, the native Go port. react-scripts
5.0.1 declares the peer "typescript: ^3.2.1 || ^4", and its toolchain
(fork-ts-checker-webpack-plugin 6, tsutils, @typescript-eslint 5)
needs the require()-able JS compiler API that TS 7 no longer ships.

- package.json: typescript ^7.0.2 -> ^4.9.5, the newest 4.x, which
  satisfies every typescript peer range in the lockfile.
- package-lock.json: regenerated with npm install --package-lock-only.
  The only changes are typescript 4.9.5 and dropping the 20
  @typescript/typescript-* native packages.
- .github/dependabot.yml: ignore typescript versions >=5 so Dependabot
  stops proposing majors react-scripts 5 cannot use. The rule should be
  removed when the project migrates off CRA. tsconfig.json is
  unchanged; its options are valid on 4.9.

Verified: npm ci succeeds and npm ls typescript reports 4.9.5 with no
invalid peers; npm run lint passes. On main as-is, npx tsc --noEmit,
npm test (10/19 suites) and npm run build still fail, but because of
the separate styled-components 6 bump (#53), which removed
styled-components/macro and the ThemedStyledComponentsModule type.
With styled-components 5.3.3 installed temporarily (--no-save), tsc,
npm test (19/19 suites, 39 tests) and npm run build all pass on
TypeScript 4.9.5.

Closes #60

Co-authored-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
shairevivo pushed a commit that referenced this pull request Nov 10, 2026
* fix(#62): complete styled-components v6 migration

PR #53 bumped styled-components to v6 without updating code still
using v5-only APIs, leaving main unable to resolve modules.

- Import from 'styled-components' instead of the removed
  'styled-components/macro' in the ten component style.ts files,
  and delete babel-plugin-macros.config.js (it only configured the
  styled-components macro).
- Replace the v5 ThemedStyledComponentsModule cast with a
  DefaultTheme module augmentation in src/commons/style/index.d.ts
  and re-export css/createGlobalStyle/keyframes/ThemeProvider
  directly.
- Use transient props ($isOpen, $large, $sku) in Cart and Product so
  styling-only props are not forwarded to the DOM in v6.
- Drop the stale @types/styled-components devDependency (v6 ships its
  own types) and update Jest snapshots; only generated class names
  changed.

Verified with TypeScript 4.9.5 swapped into node_modules, because
the TypeScript 7 on main breaks tsc and react-scripts (#60): tsc
--noEmit passes, all 39 tests pass, and eslint is clean. The lockfile
was updated with --legacy-peer-deps because of the same TS 7 peer
conflict.

Closes #62

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(#62): drop undefined theme.colors.black and test cart transient props

Address review feedback on PR #65:

- Cart/style.ts: the open-cart button background read theme.colors.black,
  a key that was removed from the theme long ago. The interpolation
  resolved to undefined, so the declaration was dropped and the button
  fell back to its own theme.colors.primary background. Use
  theme.colors.primary directly; rendered output is unchanged and the
  style no longer references an undefined theme key.
- Cart.test.tsx: add a test that opens the cart (exercising the
  $isOpen=true and $large paths) and asserts that neither isOpen nor
  large reaches the DOM, either as an attribute or as a React
  unknown-prop warning. Verified that reverting $large to large makes
  the test fail.

Not changed (pre-existing, out of scope for this migration): the
Product image alt text and the cart button accessible name; both are
better handled in a follow-up.

Verification: tests (19 suites, 40 tests), eslint ./src, and
tsc --noEmit (with TypeScript 4.9.5 swapped into node_modules, as the
TS 7 on main cannot load react-scripts; see #60) all pass. No
pre-commit config exists in the repo.

Addresses #65

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: fullsend-code <278716306+fullsend-ai-coder[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant