Skip to content

feat(web): support checkout color scheme#379

Open
westeezy wants to merge 1 commit into
mainfrom
web-color-scheme-param
Open

feat(web): support checkout color scheme#379
westeezy wants to merge 1 commit into
mainfrom
web-color-scheme-param

Conversation

@westeezy

Copy link
Copy Markdown
Contributor

What changes are you making?

Support color-scheme property for ec_color_scheme

How to test

See sample app


Before you merge

Important

  • I've added tests to support my implementation
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct
  • I've updated the relevant platform README (platforms/swift/README.md and/or platforms/android/README.md)

Support `color-scheme` property for `ec_color_scheme`
@westeezy westeezy requested a review from a team as a code owner June 30, 2026 03:06
@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Jun 30, 2026
@github-actions

Copy link
Copy Markdown

Web — Coverage Report

Lines Statements Branches Functions
Coverage: 98%
98.23% (279/284) 88.76% (158/178) 100% (61/61)

@github-actions

Copy link
Copy Markdown

Package Size

Platform Artifact Base Head Delta
Web npm tarball 55.9 KiB 57.5 KiB +1.6 KiB

Measured from the PR base SHA and PR head SHA. This comment reports package artifact sizes only; it is not a final app binary-size report.

case "auto":
case null:
return undefined;
default:

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.

do we want to stay full-spec, and just accept light|dark?

https://ucp.dev/latest/specification/embedded-checkout/#color-scheme

omission is no-preference (which is essentially auto)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh yes we do good catch!

<label>
<span>color scheme</span>
<select name="colorScheme">
<option value="auto" selected>auto</option>

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.

same q as below, maybe we drop this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants