Skip to content

feat(checkout): CHECKOUT-10198 update themeV2 styles to work with dark variant from cornerstone - #3228

Merged
richapatel1510 merged 9 commits into
masterfrom
CHECKOUT-10198
Aug 11, 2026
Merged

feat(checkout): CHECKOUT-10198 update themeV2 styles to work with dark variant from cornerstone#3228
richapatel1510 merged 9 commits into
masterfrom
CHECKOUT-10198

Conversation

@richapatel1510

@richapatel1510 richapatel1510 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What/Why?

Rollout/Rollback

Rever this PR.

Testing

  • CI checks
  • Manual testing

BEFORE

BOLDTheme-BEFORE.mov

AFTER

BOLDTheme-AFTER.mov

Note

Medium Risk
Wide rename and class/CSS changes touch checkout navigation (billing step omission), payment submit gating, and Stripe OCS appearance; regressions would show as wrong step order, styling on non-enhanced checkout, or wallet payment UI mismatches.

Overview
Renames the checkout theme V2 flag and SCSS surface to enhancedThemeV1 (isEnhancedThemeV1Enabled, context enhancedThemeV1, root class enhancedThemeV1, mixin @include enhancedThemeV1, Stripe CheckoutTheme.ENHANCED_THEME_V1) while keeping the same checkoutV2Theme setting and experiment gates.

Styling shifts the enhanced layout away from hard-coded palette colors toward optimizedCheckout-* theme tokens (content, headings, order summary, form inputs) across checkout UI—addresses, cart, coupons, customer, payment, shipping, and modals. SCSS under enhancedThemeV1/ drops many static $color-* rules (page background, borders, checklist selection colors, coupon button colors) so Cornerstone/dark variants can drive appearance; cart summary drawer and checklist borders use generic border width/style where colors were removed.

Behavior tweaks: active checkout steps get checkout-step--current; step header titles pair body classes with the matching optimizedCheckout-heading* classes. Cart summary drawer V2 adds enhancedThemeV1 on the drawer root and optimizedCheckout-orderSummary / toggle classes on backdrop and labels.

Reviewed by Cursor Bugbot for commit 0ee5aec. Bugbot is set up for automated code reviews on this repo. Configure here.

@richapatel1510

Copy link
Copy Markdown
Contributor Author

cursor review

Comment thread packages/core/src/scss/enhancedTheme/components/checkout/_checklist.scss Outdated
Comment thread packages/core/src/app/billing/BillingForm.tsx
Comment thread packages/core/src/app/cart/CartSummaryDrawerV2.tsx Outdated
@richapatel1510

Copy link
Copy Markdown
Contributor Author

cursor review

@cursor cursor 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 583eae0. Configure here.

@richapatel1510
richapatel1510 marked this pull request as ready for review August 7, 2026 04:52
@richapatel1510
richapatel1510 requested review from a team as code owners August 7, 2026 04:52
@richapatel1510 richapatel1510 changed the title Checkout 10198 eat(checkout): CHECKOUT-10198 update themeV2 styles to work with dark variant from cornerstone Aug 7, 2026
@richapatel1510 richapatel1510 changed the title eat(checkout): CHECKOUT-10198 update themeV2 styles to work with dark variant from cornerstone feat(checkout): CHECKOUT-10198 update themeV2 styles to work with dark variant from cornerstone Aug 7, 2026

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 583eae0. Configure here.

@animesh1987

Copy link
Copy Markdown
Contributor

Nice work @richapatel1510 I have one question, if we really want to call this enhancedTheme? Maybe we can think of a better way to describe this? Since what if we have another layout then this won't be as enhanced.

@bc-maxy bc-maxy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A few nits about renaming, otherwise looks great to me 🤩

describe('themeV2 (billing captured on the payment step)', () => {
const getThemeV2Config = () => ({
describe('enhancedThemeV1 (billing captured on the payment step)', () => {
const getEnhancedThemeConfig = () => ({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
const getEnhancedThemeConfig = () => ({
const getEnhancedThemeV1Config = () => ({

@@ -497,7 +497,7 @@ describe('getCheckoutStepStatuses()', () => {
});

beforeEach(() => {
jest.spyOn(state.data, 'getConfig').mockReturnValue(getThemeV2Config());
jest.spyOn(state.data, 'getConfig').mockReturnValue(getEnhancedThemeConfig());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
jest.spyOn(state.data, 'getConfig').mockReturnValue(getEnhancedThemeConfig());
jest.spyOn(state.data, 'getConfig').mockReturnValue(getEnhancedThemeV1Config());

Comment thread packages/core/src/scss/App.scss Outdated
@@ -79,4 +79,4 @@
// THEME V2

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
// THEME V2
// ENHANCED THEME V1

@richapatel1510
richapatel1510 requested a review from bc-maxy August 10, 2026 06:45
@richapatel1510
richapatel1510 merged commit b44a9f4 into master Aug 11, 2026
10 checks passed
@richapatel1510
richapatel1510 deleted the CHECKOUT-10198 branch August 11, 2026 00:09
@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Staging US
success 20260811002203 by Launchbay

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse results

🖥️ Desktop:

Category Score
🟢 Performance 98
🟢 Accessibility 96
🟠 Best practices 59

📱 Mobile:

Category Score
🟢 Performance 95
🟢 Accessibility 96
🟠 Best practices 59

@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Integration US
success 20260811002203 by Richa Patel

@bc-launchbay

Copy link
Copy Markdown

checkout-js deployed to Production US
success 20260811002203 promoted by https://launchbay.bigcommerce.net/projects/535/releases/294582 being deployed. Deployed by animesh1987

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.

4 participants